Struct libpijul::small_string::SmallStr[][src]

pub struct SmallStr { /* fields omitted */ }

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]

impl PartialEq<SmallStr> for SmallStr[src]

impl PartialOrd<SmallStr> for SmallStr[src]

impl Storable for SmallStr[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

impl UnsizedStorable for SmallStr[src]

Auto Trait Implementations

impl RefUnwindSafe for SmallStr

impl Send for SmallStr

impl !Sized for SmallStr

impl Sync for SmallStr

impl Unpin for SmallStr

impl UnwindSafe for SmallStr

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]