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