#[repr(transparent)]
pub struct Symbol(/* private fields */);

Implementations§

source§

impl Symbol

source

pub const fn as_val(&self) -> &Val

source

pub const fn to_val(&self) -> Val

source§

impl Symbol

source

pub const fn from_small(s: SymbolSmall) -> Symbol

source§

impl Symbol

Trait Implementations§

source§

impl AsMut<Val> for Symbol

source§

fn as_mut(&mut self) -> &mut Val

Converts this type into a mutable reference of the (usually inferred) input type.
source§

impl AsRef<Val> for Symbol

source§

fn as_ref(&self) -> &Val

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl Clone for Symbol

source§

fn clone(&self) -> Symbol

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Symbol

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl From<&Symbol> for Val

source§

fn from(b: &Symbol) -> Val

Converts to this type from the input type.
source§

impl From<Symbol> for Val

source§

fn from(b: Symbol) -> Val

Converts to this type from the input type.
source§

impl From<SymbolObject> for Symbol

source§

fn from(ob: SymbolObject) -> Symbol

Converts to this type from the input type.
source§

impl From<SymbolSmall> for Symbol

source§

fn from(s: SymbolSmall) -> Symbol

Converts to this type from the input type.
source§

impl TryFrom<&Val> for Symbol

§

type Error = ConversionError

The type returned in the event of a conversion error.
source§

fn try_from(v: &Val) -> Result<Symbol, <Symbol as TryFrom<&Val>>::Error>

Performs the conversion.
source§

impl TryFrom<Symbol> for SymbolObject

§

type Error = ConversionError

The type returned in the event of a conversion error.
source§

fn try_from( s: Symbol ) -> Result<SymbolObject, <SymbolObject as TryFrom<Symbol>>::Error>

Performs the conversion.
source§

impl TryFrom<Symbol> for SymbolSmall

§

type Error = ConversionError

The type returned in the event of a conversion error.
source§

fn try_from( s: Symbol ) -> Result<SymbolSmall, <SymbolSmall as TryFrom<Symbol>>::Error>

Performs the conversion.
source§

impl TryFrom<Val> for Symbol

§

type Error = ConversionError

The type returned in the event of a conversion error.
source§

fn try_from(v: Val) -> Result<Symbol, <Symbol as TryFrom<Val>>::Error>

Performs the conversion.
source§

impl<E> TryFromVal<E, &[u8]> for Symbolwhere E: Env,

§

type Error = Error

source§

fn try_from_val( env: &E, v: &&[u8] ) -> Result<Symbol, <Symbol as TryFromVal<E, &[u8]>>::Error>

source§

impl<E> TryFromVal<E, &str> for Symbolwhere E: Env,

§

type Error = Error

source§

fn try_from_val( env: &E, v: &&str ) -> Result<Symbol, <Symbol as TryFromVal<E, &str>>::Error>

source§

impl<E> TryFromVal<E, Symbol> for SymbolStrwhere E: Env,

source§

impl<E> TryFromVal<E, Symbol> for Valwhere E: Env,

source§

impl<E> TryFromVal<E, Val> for Symbolwhere E: Env,

source§

impl Copy for Symbol

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T, C> Compare<&T> for Cwhere C: Compare<T>,

§

type Error = <C as Compare<T>>::Error

source§

fn compare(&self, a: &&T, b: &&T) -> Result<Ordering, <C as Compare<&T>>::Error>

source§

impl<T, U, E, C> Compare<(T, U)> for Cwhere C: Compare<T, Error = E, Error = E> + Compare<U>,

§

type Error = E

source§

fn compare( &self, a: &(T, U), b: &(T, U) ) -> Result<Ordering, <C as Compare<(T, U)>>::Error>

source§

impl<T, U, V, E, C> Compare<(T, U, V)> for Cwhere C: Compare<T, Error = E, Error = E, Error = E> + Compare<U> + Compare<V>,

§

type Error = E

source§

fn compare( &self, a: &(T, U, V), b: &(T, U, V) ) -> Result<Ordering, <C as Compare<(T, U, V)>>::Error>

source§

impl<T, U, V, W, E, C> Compare<(T, U, V, W)> for Cwhere C: Compare<T, Error = E, Error = E, Error = E, Error = E> + Compare<U> + Compare<V> + Compare<W>,

source§

impl<T, U, V, W, X, E, C> Compare<(T, U, V, W, X)> for Cwhere C: Compare<T, Error = E, Error = E, Error = E, Error = E, Error = E> + Compare<U> + Compare<V> + Compare<W> + Compare<X>,

source§

impl<T, C> Compare<Option<T>> for Cwhere C: Compare<T>,

§

type Error = <C as Compare<T>>::Error

source§

fn compare( &self, a: &Option<T>, b: &Option<T> ) -> Result<Ordering, <C as Compare<Option<T>>>::Error>

source§

impl<E> Compare<Symbol> for Ewhere E: Env,

§

type Error = <E as EnvBase>::Error

source§

fn compare( &self, a: &Symbol, b: &Symbol ) -> Result<Ordering, <E as Compare<Symbol>>::Error>

source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

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

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

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

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

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

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<E, T, U> TryIntoVal<E, T> for Uwhere E: Env, T: TryFromVal<E, U>,

§

type Error = <T as TryFromVal<E, U>>::Error

source§

fn try_into_val(&self, env: &E) -> Result<T, <U as TryIntoVal<E, T>>::Error>