Struct sea_streamer_file::format::ShortString
source · pub struct ShortString(/* private fields */);
Implementations§
source§impl ShortString
impl ShortString
pub fn new(string: String) -> Result<Self, ShortStringErr>
pub fn string(self) -> String
pub async fn read_from(file: &mut impl ByteSource) -> Result<Self, FileErr>
pub fn write_to(self, sink: &mut impl ByteSink) -> Result<usize, FileErr>
pub fn size(&self) -> usize
pub fn size_of(string: &str) -> usize
pub fn max_size() -> usize
Auto Trait Implementations§
impl Freeze for ShortString
impl RefUnwindSafe for ShortString
impl Send for ShortString
impl Sync for ShortString
impl Unpin for ShortString
impl UnwindSafe for ShortString
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