pub enum PsbValue {
Show 17 variants
None,
Null,
Bool(bool),
Number(PsbNumber),
IntArray(PsbUintArray),
String(PsbString),
List(PsbList),
Object(PsbObject),
Resource(PsbResourceRef),
ExtraResource(PsbExtraRef),
CompilerNumber,
CompilerString,
CompilerResource,
CompilerDecimal,
CompilerArray,
CompilerBool,
CompilerBinaryTree,
}Variants§
None
Null
Bool(bool)
Number(PsbNumber)
IntArray(PsbUintArray)
String(PsbString)
List(PsbList)
Object(PsbObject)
Resource(PsbResourceRef)
ExtraResource(PsbExtraRef)
CompilerNumber
CompilerString
CompilerResource
CompilerDecimal
CompilerArray
CompilerBool
CompilerBinaryTree
Implementations§
Source§impl PsbValue
impl PsbValue
pub fn from_bytes<T: Read + Seek>( stream: &mut T, ) -> Result<(u64, PsbValue), PsbError>
pub fn from_bytes_refs<T: Read + Seek>( stream: &mut T, table: &PsbRefs, ) -> Result<(u64, PsbValue), PsbError>
pub fn write_bytes(&self, stream: &mut impl Write) -> Result<u64, PsbError>
pub fn write_bytes_refs( &self, stream: &mut impl Write, table: &PsbRefs, ) -> Result<u64, PsbError>
Trait Implementations§
impl StructuralPartialEq for PsbValue
Auto Trait Implementations§
impl Freeze for PsbValue
impl RefUnwindSafe for PsbValue
impl Send for PsbValue
impl Sync for PsbValue
impl Unpin for PsbValue
impl UnwindSafe for PsbValue
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