Struct libpijul::SmallString
[−]
[src]
#[repr(packed)]pub struct SmallString { pub len: u8, pub str: [u8; 255], }
A string of length at most 255, with a more compact on-disk encoding.
Fields
len: u8
str: [u8; 255]
Methods
impl SmallString
[src]
fn len(&self) -> usize
[src]
fn from_str(s: &str) -> Self
[src]
fn clone_from_str(&mut self, s: &str)
[src]
fn clear(&mut self)
[src]
fn push_str(&mut self, s: &str)
[src]
fn as_small_str(&self) -> SmallStr
[src]
fn as_str(&self) -> &str
[src]
Trait Implementations
impl Clone for SmallString
[src]
fn clone(&self) -> Self
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for SmallString
[src]
impl PartialEq for SmallString
[src]
fn eq(&self, x: &SmallString) -> bool
[src]
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[src]
This method tests for !=
.