pub struct s32 { /* private fields */ }Implementations§
Source§impl s32
impl s32
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; 32]) -> Self
pub const fn assume_from_array(arr: [u8; 32]) -> 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 s32
impl Ord for s32
Source§impl<T: CopystrComparable> PartialEq<T> for s32
impl<T: CopystrComparable> PartialEq<T> for s32
Source§impl<T: CopystrComparable> PartialOrd<T> for s32
impl<T: CopystrComparable> PartialOrd<T> for s32
Source§impl PartialOrd<s10> for s32
impl PartialOrd<s10> for s32
Source§impl PartialOrd<s11> for s32
impl PartialOrd<s11> for s32
Source§impl PartialOrd<s12> for s32
impl PartialOrd<s12> for s32
Source§impl PartialOrd<s13> for s32
impl PartialOrd<s13> for s32
Source§impl PartialOrd<s14> for s32
impl PartialOrd<s14> for s32
Source§impl PartialOrd<s15> for s32
impl PartialOrd<s15> for s32
Source§impl PartialOrd<s16> for s32
impl PartialOrd<s16> for s32
Source§impl PartialOrd<s17> for s32
impl PartialOrd<s17> for s32
Source§impl PartialOrd<s18> for s32
impl PartialOrd<s18> for s32
Source§impl PartialOrd<s19> for s32
impl PartialOrd<s19> for s32
Source§impl PartialOrd<s20> for s32
impl PartialOrd<s20> for s32
Source§impl PartialOrd<s21> for s32
impl PartialOrd<s21> for s32
Source§impl PartialOrd<s22> for s32
impl PartialOrd<s22> for s32
Source§impl PartialOrd<s23> for s32
impl PartialOrd<s23> for s32
Source§impl PartialOrd<s24> for s32
impl PartialOrd<s24> for s32
Source§impl PartialOrd<s25> for s32
impl PartialOrd<s25> for s32
Source§impl PartialOrd<s26> for s32
impl PartialOrd<s26> for s32
Source§impl PartialOrd<s27> for s32
impl PartialOrd<s27> for s32
Source§impl PartialOrd<s28> for s32
impl PartialOrd<s28> for s32
Source§impl PartialOrd<s29> for s32
impl PartialOrd<s29> for s32
Source§impl PartialOrd<s3> for s32
impl PartialOrd<s3> for s32
Source§impl PartialOrd<s30> for s32
impl PartialOrd<s30> for s32
Source§impl PartialOrd<s31> for s32
impl PartialOrd<s31> for s32
Source§impl PartialOrd<s32> for s10
impl PartialOrd<s32> for s10
Source§impl PartialOrd<s32> for s11
impl PartialOrd<s32> for s11
Source§impl PartialOrd<s32> for s12
impl PartialOrd<s32> for s12
Source§impl PartialOrd<s32> for s13
impl PartialOrd<s32> for s13
Source§impl PartialOrd<s32> for s14
impl PartialOrd<s32> for s14
Source§impl PartialOrd<s32> for s15
impl PartialOrd<s32> for s15
Source§impl PartialOrd<s32> for s16
impl PartialOrd<s32> for s16
Source§impl PartialOrd<s32> for s17
impl PartialOrd<s32> for s17
Source§impl PartialOrd<s32> for s18
impl PartialOrd<s32> for s18
Source§impl PartialOrd<s32> for s19
impl PartialOrd<s32> for s19
Source§impl PartialOrd<s32> for s20
impl PartialOrd<s32> for s20
Source§impl PartialOrd<s32> for s21
impl PartialOrd<s32> for s21
Source§impl PartialOrd<s32> for s22
impl PartialOrd<s32> for s22
Source§impl PartialOrd<s32> for s23
impl PartialOrd<s32> for s23
Source§impl PartialOrd<s32> for s24
impl PartialOrd<s32> for s24
Source§impl PartialOrd<s32> for s25
impl PartialOrd<s32> for s25
Source§impl PartialOrd<s32> for s26
impl PartialOrd<s32> for s26
Source§impl PartialOrd<s32> for s27
impl PartialOrd<s32> for s27
Source§impl PartialOrd<s32> for s28
impl PartialOrd<s32> for s28
Source§impl PartialOrd<s32> for s29
impl PartialOrd<s32> for s29
Source§impl PartialOrd<s32> for s3
impl PartialOrd<s32> for s3
Source§impl PartialOrd<s32> for s30
impl PartialOrd<s32> for s30
Source§impl PartialOrd<s32> for s31
impl PartialOrd<s32> for s31
Source§impl PartialOrd<s32> for s4
impl PartialOrd<s32> for s4
Source§impl PartialOrd<s32> for s5
impl PartialOrd<s32> for s5
Source§impl PartialOrd<s32> for s6
impl PartialOrd<s32> for s6
Source§impl PartialOrd<s32> for s7
impl PartialOrd<s32> for s7
Source§impl PartialOrd<s32> for s8
impl PartialOrd<s32> for s8
Source§impl PartialOrd<s32> for s9
impl PartialOrd<s32> for s9
Source§impl PartialOrd<s4> for s32
impl PartialOrd<s4> for s32
Source§impl PartialOrd<s5> for s32
impl PartialOrd<s5> for s32
Source§impl PartialOrd<s6> for s32
impl PartialOrd<s6> for s32
Source§impl PartialOrd<s7> for s32
impl PartialOrd<s7> for s32
Source§impl PartialOrd<s8> for s32
impl PartialOrd<s8> for s32
Source§impl PartialOrd<s9> for s32
impl PartialOrd<s9> for s32
Source§impl PartialOrd for s32
impl PartialOrd for s32
impl Copy for s32
impl Eq for s32
impl StructuralPartialEq for s32
Auto Trait Implementations§
impl Freeze for s32
impl RefUnwindSafe for s32
impl Send for s32
impl Sync for s32
impl Unpin for s32
impl UnwindSafe for s32
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