Struct libpijul::small_string::SmallStr [−][src]
pub struct SmallStr { /* fields omitted */ }
Expand description
A borrowed version of SmallStr
.
Implementations
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());
use libpijul::small_string::*; let mut s = SmallString::from_str("blah"); assert_eq!(s.as_small_str().len(), "blah".len())
Trait Implementations
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
This is required for B trees, not necessarily for other structures. The default implementation panics. Read more
type PageReferences = Empty<u64>
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
If this value is an offset to another page at offset offset
,
return Some(offset)
. Return None
else. Read more
Auto Trait Implementations
impl RefUnwindSafe for SmallStr
impl UnwindSafe for SmallStr
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.