[][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. Strings are always stored on the garbage-collected heap, so they're normally represented by the type Root<Str>.

Implementations

impl Str[src]

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

Notable traits for Root<GIter>

impl Iterator for Root<GIter> type Item = Result<Val, GError>;
[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>

Notable traits for Root<GIter>

impl Iterator for Root<GIter> type Item = Result<Val, GError>;
[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
[src]

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

impl DequeOps for Str[src]

type Element = char

type Item = char

impl Display for Str[src]

impl Eq 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 Ord for Str[src]

impl PartialEq<Str> for Str[src]

impl PartialOrd<Str> for Str[src]

impl Serialize for Str[src]

impl Splay for Str[src]

impl<'a> ToSym for Str[src]

Auto Trait Implementations

impl !RefUnwindSafe for Str[src]

impl Send for Str[src]

impl !Sync for Str[src]

impl Unpin for Str[src]

impl UnwindSafe for Str[src]

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> Erased for T

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

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

impl<T> IntoElement<Slot> for T where
    T: IntoVal
[src]

impl<T> IntoVal for T where
    T: StaticMarker, 
[src]

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.