pub struct s16 { /* private fields */ }Implementations§
Source§impl s16
impl s16
pub fn new(string: &str) -> Result<Self, Error>
Sourcepub fn from_slice(raw: &[u8]) -> Result<Self, Error>
pub fn from_slice(raw: &[u8]) -> Result<Self, Error>
Doesn’t check UTF8, only if slice length is within capacity.
Sourcepub const fn assume_from_array(arr: [u8; 16]) -> Self
pub const fn assume_from_array(arr: [u8; 16]) -> Self
Const create by consuming an array. Length is set to the full length of the array. Doesn’t UTF8 check! Watch out.
pub fn capacity() -> usize
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn try_as_str(&self) -> Result<&str, Error>
pub fn as_bytes(&self) -> &[u8] ⓘ
pub fn as_all_bytes(&self) -> &[u8] ⓘ
Trait Implementations§
Source§impl Ord for s16
impl Ord for s16
Source§impl<T: CopystrComparable> PartialEq<T> for s16
impl<T: CopystrComparable> PartialEq<T> for s16
Source§impl<T: CopystrComparable> PartialOrd<T> for s16
impl<T: CopystrComparable> PartialOrd<T> for s16
Source§impl PartialOrd<s10> for s16
impl PartialOrd<s10> for s16
Source§impl PartialOrd<s11> for s16
impl PartialOrd<s11> for s16
Source§impl PartialOrd<s12> for s16
impl PartialOrd<s12> for s16
Source§impl PartialOrd<s13> for s16
impl PartialOrd<s13> for s16
Source§impl PartialOrd<s14> for s16
impl PartialOrd<s14> for s16
Source§impl PartialOrd<s15> for s16
impl PartialOrd<s15> for s16
Source§impl PartialOrd<s16> for s10
impl PartialOrd<s16> for s10
Source§impl PartialOrd<s16> for s11
impl PartialOrd<s16> for s11
Source§impl PartialOrd<s16> for s12
impl PartialOrd<s16> for s12
Source§impl PartialOrd<s16> for s13
impl PartialOrd<s16> for s13
Source§impl PartialOrd<s16> for s14
impl PartialOrd<s16> for s14
Source§impl PartialOrd<s16> for s15
impl PartialOrd<s16> for s15
Source§impl PartialOrd<s16> for s17
impl PartialOrd<s16> for s17
Source§impl PartialOrd<s16> for s18
impl PartialOrd<s16> for s18
Source§impl PartialOrd<s16> for s19
impl PartialOrd<s16> for s19
Source§impl PartialOrd<s16> for s20
impl PartialOrd<s16> for s20
Source§impl PartialOrd<s16> for s21
impl PartialOrd<s16> for s21
Source§impl PartialOrd<s16> for s22
impl PartialOrd<s16> for s22
Source§impl PartialOrd<s16> for s23
impl PartialOrd<s16> for s23
Source§impl PartialOrd<s16> for s24
impl PartialOrd<s16> for s24
Source§impl PartialOrd<s16> for s25
impl PartialOrd<s16> for s25
Source§impl PartialOrd<s16> for s26
impl PartialOrd<s16> for s26
Source§impl PartialOrd<s16> for s27
impl PartialOrd<s16> for s27
Source§impl PartialOrd<s16> for s28
impl PartialOrd<s16> for s28
Source§impl PartialOrd<s16> for s29
impl PartialOrd<s16> for s29
Source§impl PartialOrd<s16> for s3
impl PartialOrd<s16> for s3
Source§impl PartialOrd<s16> for s30
impl PartialOrd<s16> for s30
Source§impl PartialOrd<s16> for s31
impl PartialOrd<s16> for s31
Source§impl PartialOrd<s16> for s32
impl PartialOrd<s16> for s32
Source§impl PartialOrd<s16> for s4
impl PartialOrd<s16> for s4
Source§impl PartialOrd<s16> for s5
impl PartialOrd<s16> for s5
Source§impl PartialOrd<s16> for s6
impl PartialOrd<s16> for s6
Source§impl PartialOrd<s16> for s7
impl PartialOrd<s16> for s7
Source§impl PartialOrd<s16> for s8
impl PartialOrd<s16> for s8
Source§impl PartialOrd<s16> for s9
impl PartialOrd<s16> for s9
Source§impl PartialOrd<s17> for s16
impl PartialOrd<s17> for s16
Source§impl PartialOrd<s18> for s16
impl PartialOrd<s18> for s16
Source§impl PartialOrd<s19> for s16
impl PartialOrd<s19> for s16
Source§impl PartialOrd<s20> for s16
impl PartialOrd<s20> for s16
Source§impl PartialOrd<s21> for s16
impl PartialOrd<s21> for s16
Source§impl PartialOrd<s22> for s16
impl PartialOrd<s22> for s16
Source§impl PartialOrd<s23> for s16
impl PartialOrd<s23> for s16
Source§impl PartialOrd<s24> for s16
impl PartialOrd<s24> for s16
Source§impl PartialOrd<s25> for s16
impl PartialOrd<s25> for s16
Source§impl PartialOrd<s26> for s16
impl PartialOrd<s26> for s16
Source§impl PartialOrd<s27> for s16
impl PartialOrd<s27> for s16
Source§impl PartialOrd<s28> for s16
impl PartialOrd<s28> for s16
Source§impl PartialOrd<s29> for s16
impl PartialOrd<s29> for s16
Source§impl PartialOrd<s3> for s16
impl PartialOrd<s3> for s16
Source§impl PartialOrd<s30> for s16
impl PartialOrd<s30> for s16
Source§impl PartialOrd<s31> for s16
impl PartialOrd<s31> for s16
Source§impl PartialOrd<s32> for s16
impl PartialOrd<s32> for s16
Source§impl PartialOrd<s4> for s16
impl PartialOrd<s4> for s16
Source§impl PartialOrd<s5> for s16
impl PartialOrd<s5> for s16
Source§impl PartialOrd<s6> for s16
impl PartialOrd<s6> for s16
Source§impl PartialOrd<s7> for s16
impl PartialOrd<s7> for s16
Source§impl PartialOrd<s8> for s16
impl PartialOrd<s8> for s16
Source§impl PartialOrd<s9> for s16
impl PartialOrd<s9> for s16
Source§impl PartialOrd for s16
impl PartialOrd for s16
impl Copy for s16
impl Eq for s16
impl StructuralPartialEq for s16
Auto Trait Implementations§
impl Freeze for s16
impl RefUnwindSafe for s16
impl Send for s16
impl Sync for s16
impl Unpin for s16
impl UnwindSafe for s16
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