pub struct KeyString { /* private fields */ }Implementations§
Source§impl KeyString
impl KeyString
pub fn new() -> Self
pub fn len(&self) -> usize
pub fn push(&mut self, s: &str)
pub fn as_str(&self) -> &str
pub fn as_bytes(&self) -> &[u8] ⓘ
pub fn raw(&self) -> &[u8] ⓘ
Sourcepub fn to_i32(&self) -> i32
pub fn to_i32(&self) -> i32
These functions may panic and should only be called if you are certain that the KeyString contains a valid number
Sourcepub fn to_f32(&self) -> f32
pub fn to_f32(&self) -> f32
These functions may panic and should only be called if you are certain that the KeyString contains a valid number
pub fn to_i32_checked(&self) -> Result<i32, ParseIntError>
pub fn to_f32_checked(&self) -> Result<f32, ParseFloatError>
Trait Implementations§
Source§impl From<&str> for KeyString
Turns a &str into a KeyString. If the &str has more than 64 bytes, the last bytes will be cut.
impl From<&str> for KeyString
Turns a &str into a KeyString. If the &str has more than 64 bytes, the last bytes will be cut.
Source§impl Ord for KeyString
impl Ord for KeyString
Source§impl PartialOrd for KeyString
impl PartialOrd for KeyString
impl Copy for KeyString
impl Eq for KeyString
impl StructuralPartialEq for KeyString
Auto Trait Implementations§
impl Freeze for KeyString
impl RefUnwindSafe for KeyString
impl Send for KeyString
impl Sync for KeyString
impl Unpin for KeyString
impl UnwindSafe for KeyString
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