pub enum SizedStringSize {
Bytes(u64),
Chars(u64),
}Variants§
Implementations§
Source§impl SizedStringSize
impl SizedStringSize
Sourcepub fn bytes(n: u32) -> Self
pub fn bytes(n: u32) -> Self
SizedStringSize::Bytes factory for u32 size.
Sourcepub fn bytes16(n: u16) -> Self
pub fn bytes16(n: u16) -> Self
SizedStringSize::Bytes factory for u16 size.
Sourcepub fn chars(n: u32) -> Self
pub fn chars(n: u32) -> Self
SizedStringSize::Chars factory for u32 size.
Sourcepub fn chars16(n: u16) -> Self
pub fn chars16(n: u16) -> Self
SizedStringSize::Chars factory for u16 size.
Trait Implementations§
Source§impl Clone for SizedStringSize
impl Clone for SizedStringSize
Source§fn clone(&self) -> SizedStringSize
fn clone(&self) -> SizedStringSize
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SizedStringSize
impl Debug for SizedStringSize
impl Copy for SizedStringSize
Auto Trait Implementations§
impl Freeze for SizedStringSize
impl RefUnwindSafe for SizedStringSize
impl Send for SizedStringSize
impl Sync for SizedStringSize
impl Unpin for SizedStringSize
impl UnwindSafe for SizedStringSize
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