[][src]Struct glsp::Str

pub struct Str { /* fields omitted */ }

The str primitive type.

Most of this type's methods belong to the deque abstract type, so they can be found in the traits DequeOps, DequeAccess, and DequeAccessRange.

New strings can be constructed using the str! macro or various toplevel functions, such as glsp::str and glsp::str_from_iter.


impl Str[src]

pub fn shallow_clone(&self) -> Root<Str>[src]

Creates a new string with a copy of this string's contents.

Equivalent to (clone st).

pub fn access_giter(st: &Root<Str>, giter: &Root<GIter>) -> Root<GIter>[src]

Creates an indexing iterator for this collection.

Equivalent to [st iter].

pub fn push_rust_str(&self, s: &str) -> Result<(), GError>[src]

Pushes all of the characters from a &str to the end of this string.

Trait Implementations

impl Debug for Str[src]

impl<I> DequeAccess<I> for Str where
    I: DequeIndex

impl<I, R> DequeAccessRange<I, R> for Str where
    I: DequeIndex,
    R: DequeRange<I> + Debug

impl DequeOps for Str[src]

type Element = char

type Item = char

impl Display for Str[src]

impl Hash for Str[src]

impl<'a> IntoIterator for &'a Str[src]

type Item = char

The type of the elements being iterated over.

type IntoIter = IterDeque<'a, Str>

Which kind of iterator are we turning this into?

impl<'a, 'r> MakeArg<'a> for &'r Str where
    'a: 'r, 

impl PartialEq<Str> for Str[src]

impl Serialize for Str[src]

impl Splay for Str[src]

impl<'a> ToSym for Str[src]

Auto Trait Implementations

impl GSend for Str

impl GStore for Str

impl !RefUnwindSafe for Str

impl Send for Str

impl !Sync for Str

impl Unpin for Str

impl UnwindSafe for Str

Blanket Implementations

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

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<T> Erased for T

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

impl<T, U> Into<U> for T where
    U: From<T>, 

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

impl<'a, T> ToSym for T where
    T: Deref,
    <T as Deref>::Target: ToSym

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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

The type returned in the event of a conversion error.