pub struct PsbString { /* private fields */ }Implementations§
Source§impl PsbString
impl PsbString
pub fn new() -> Self
pub fn string(&self) -> &String
pub fn string_mut(&mut self) -> &mut String
pub fn set_string(&mut self, string: String)
pub fn unwrap(self) -> String
pub fn from_bytes( n: u8, stream: &mut impl Read, table: &PsbRefs, ) -> Result<(u64, Self), PsbError>
pub fn write_bytes( &self, stream: &mut impl Write, ref_table: &PsbRefs, ) -> Result<u64, PsbError>
Trait Implementations§
impl Eq for PsbString
impl StructuralPartialEq for PsbString
Auto Trait Implementations§
impl Freeze for PsbString
impl RefUnwindSafe for PsbString
impl Send for PsbString
impl Sync for PsbString
impl Unpin for PsbString
impl UnwindSafe for PsbString
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