Struct libpijul::small_string::SmallStr [−][src]
A borrowed version of SmallStr
.
Implementations
impl SmallStr
[src]
pub fn is_empty(&self) -> bool
[src]
ⓘ
use libpijul::small_string::*; let mut s = SmallString::from_str(""); assert!(s.as_small_str().is_empty()); s.push_str("blah"); assert!(!s.as_small_str().is_empty());
pub fn len(&self) -> usize
[src]
ⓘ
use libpijul::small_string::*; let mut s = SmallString::from_str("blah"); assert_eq!(s.as_small_str().len(), "blah".len())
pub fn as_str(&self) -> &str
[src]
pub fn as_bytes(&self) -> &[u8]
[src]
pub fn to_owned(&self) -> SmallString
[src]
Trait Implementations
impl AsMut<SmallStr> for SmallString
[src]
impl AsRef<SmallStr> for SmallString
[src]
impl Debug for SmallStr
[src]
impl Eq for SmallStr
[src]
impl Ord for SmallStr
[src]
fn cmp(&self, x: &SmallStr) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl PartialEq<SmallStr> for SmallStr
[src]
impl PartialOrd<SmallStr> for SmallStr
[src]
fn partial_cmp(&self, x: &SmallStr) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl Storable for SmallStr
[src]
fn compare<T>(&self, _: &T, x: &Self) -> Ordering
[src]
type PageReferences = Empty<u64>
An iterator over the offsets to pages contained in this
value. Only values from this crate can generate non-empty
iterators, but combined values (like tuples) must chain the
iterators returned by method page_offsets
. Read more