Struct libpijul::SmallString
[−]
[src]
#[repr(packed)]pub struct SmallString { pub len: u8, pub str: [u8; 255], }
Fields
len: u8
str: [u8; 255]
Methods
impl SmallString
[src]
fn len(&self) -> usize
fn from_str(s: &str) -> Self
fn clone_from_str(&mut self, s: &str)
fn clear(&mut self)
fn push_str(&mut self, s: &str)
fn as_small_str(&self) -> SmallStr
fn as_str(&self) -> &str
Trait Implementations
impl Clone for SmallString
[src]
fn clone(&self) -> Self
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Debug for SmallString
[src]
impl PartialEq for SmallString
[src]
fn eq(&self, x: &SmallString) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.
impl Eq for SmallString
[src]
impl Hash for SmallString
[src]
fn hash<H: Hasher>(&self, x: &mut H)
Feeds this value into the state given, updating the hasher as necessary.
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
H: Hasher,
Feeds a slice of this type into the state provided.