[][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>[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
    I: DequeIndex,
    R: DequeRange<I> + Debug
[src]

impl DequeOps for Deque[src]

type Element = Slot

type Item = Val

impl FromVal for Deque[src]

impl PartialEq<Deque> for Deque[src]

impl Splay for Deque[src]

impl StructuralPartialEq for Deque[src]

impl ToVal for Deque[src]

Auto Trait Implementations

impl !GSend for Deque

impl !GStore for Deque

impl !RefUnwindSafe for Deque

impl !Send for Deque

impl !Sync for Deque

impl Unpin for Deque

impl !UnwindSafe for Deque

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: ToVal
[src]

impl<T> IntoResult for T where
    T: ToVal
[src]

impl<'a, T> MakeArg<'a> for T where
    T: FromVal + MakeTemp<Temp = Slot>, 
[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.