[][src]Trait glsp::IntoElement

pub trait IntoElement<T>: Sealed<T> {
    fn into_item(self) -> Result<T, GError>;
}

A type which can be stored in a deque.

Types which implement IntoElement<Slot> can be stored in an Arr or a Deque. This has a blanket implementation for any type which implements ToVal.

Types which implement IntoElement<char> can be stored in a Str. This is implemented for char, Val, and shared and mutable references to those types.

This trait is sealed. It's not possible to implement this trait for your own types. Implement ToVal instead.

Required methods

fn into_item(self) -> Result<T, GError>

Loading content...

Implementations on Foreign Types

impl<'_> IntoElement<char> for &'_ mut char[src]

impl IntoElement<char> for char[src]

impl<'_> IntoElement<char> for &'_ char[src]

Loading content...

Implementors

impl IntoElement<char> for Val[src]

impl<'_> IntoElement<char> for &'_ Val[src]

impl<'_> IntoElement<char> for &'_ mut Val[src]

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

Loading content...