pub struct PsbObject { /* private fields */ }
Implementations§
Source§impl PsbObject
impl PsbObject
pub fn new() -> Self
pub fn len(&self) -> usize
pub fn get_value(&self, key: String) -> Option<&PsbValue>
pub fn map(&self) -> &HashMap<String, PsbValue>
pub fn iter(&self) -> Iter<'_, String, PsbValue>
pub fn unwrap(self) -> HashMap<String, PsbValue>
pub fn from_bytes<T: Read + Seek>( stream: &mut T, table: &PsbRefs, ) -> Result<(u64, PsbObject), PsbError>
pub fn write_bytes( &self, stream: &mut impl Write, ref_table: &PsbRefs, ) -> Result<u64, PsbError>
pub fn collect_names(&self, vec: &mut Vec<String>)
pub fn collect_strings(&self, vec: &mut Vec<String>)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PsbObject
impl<'de> Deserialize<'de> for PsbObject
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for PsbObject
Auto Trait Implementations§
impl Freeze for PsbObject
impl RefUnwindSafe for PsbObject
impl Send for PsbObject
impl Sync for PsbObject
impl Unpin for PsbObject
impl UnwindSafe for PsbObject
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more