[][src]Struct ketos::rc_vec::RcString

pub struct RcString { /* fields omitted */ }

Represents a reference-counted view into a String. Subslices may be created which will share the underlying data buffer.

Methods

impl RcString[src]

pub fn new(data: String) -> RcString[src]

Constructs a new RcString from a String.

pub fn is_empty(&self) -> bool[src]

Returns whether the visible slice is empty.

pub fn len(&self) -> usize[src]

Returns the length of the visible slice.

pub fn slice<R: RangeArgument<usize>>(&self, range: R) -> RcString[src]

Returns a subslice of the RcString.

pub fn into_string(self) -> String[src]

Consumes the RcString and returns a String.

pub fn push(&mut self, ch: char)[src]

Pushes a char to the end of the contained String.

pub fn push_str(&mut self, s: &str)[src]

Pushes a &str to the end of the contained String.

Trait Implementations

impl AsRef<[u8]> for RcString[src]

impl AsRef<OsStr> for RcString[src]

impl AsRef<Path> for RcString[src]

impl AsRef<str> for RcString[src]

impl Clone for RcString[src]

impl Debug for RcString[src]

impl Deref for RcString[src]

type Target = str

The resulting type after dereferencing.

impl DerefMut for RcString[src]

impl Display for RcString[src]

impl Eq for RcString[src]

impl<'a> From<&'a str> for RcString[src]

impl From<RcString> for Value[src]

impl From<String> for RcString[src]

impl Ord for RcString[src]

impl<'a> PartialEq<&'a str> for RcString[src]

impl<'a> PartialEq<Cow<'a, str>> for RcString[src]

impl<'a> PartialEq<RcString> for RcString[src]

impl<'a> PartialEq<String> for RcString[src]

impl<'a> PartialEq<str> for RcString[src]

impl PartialOrd<RcString> for RcString[src]

Auto Trait Implementations

impl !RefUnwindSafe for RcString

impl !Send for RcString

impl !Sync for RcString

impl Unpin for RcString

impl UnwindSafe for RcString

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]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,