[][src]Enum glsp::Deque

pub enum Deque {
    Arr(Root<Arr>),
    Str(Root<Str>),
}

A type-erased deque.

Because this type implements the DequeOps trait, you can manipulate it directly, without needing to access the underlying Root<Arr> or Root<Str>.

Variants

Arr(Root<Arr>)
Str(Root<Str>)

Implementations

impl Deque[src]

pub fn same(&self, other: &Deque) -> bool[src]

Returns true if both deques share the same identity.

Equivalent to (same? deq other).

pub fn shallow_clone(&self) -> Deque[src]

Creates a shallow copy of the deque.

Equivalent to (clone deq).

pub fn deep_clone(&self) -> Result<Deque, GError>[src]

Recursively copies the deque and all of its contents.

Equivalent to (deep-clone deq).

pub fn access_giter(&self, 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 [deq iter].

Trait Implementations

impl Clone for Deque[src]

impl Debug for Deque[src]

impl<I> DequeAccess<I> for Deque where
    I: DequeIndex
[src]

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

impl DequeOps for Deque[src]

type Element = Slot

type Item = Val

impl FromVal for Deque[src]

impl<'a> IntoVal for &'a Deque[src]

impl<'a> IntoVal for &'a mut Deque[src]

impl IntoVal for Deque[src]

impl PartialEq<Deque> for Deque[src]

impl Splay for Deque[src]

impl StructuralPartialEq for Deque[src]

Auto Trait Implementations

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> FromElement<Slot> for T where
    T: FromVal
[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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.