pub enum Spell<'a> {
Text(&'a str),
Variable(&'a str),
}Expand description
One part of a value spelled in a client’s own variable syntax
(spell).
Variants§
Trait Implementations§
impl<'a> Copy for Spell<'a>
impl<'a> Eq for Spell<'a>
impl<'a> StructuralPartialEq for Spell<'a>
Auto Trait Implementations§
impl<'a> Forget for Spell<'a>
impl<'a> Freeze for Spell<'a>
impl<'a> Move for Spell<'a>
impl<'a> RefUnwindSafe for Spell<'a>
impl<'a> Send for Spell<'a>
impl<'a> Sync for Spell<'a>
impl<'a> Unpin for Spell<'a>
impl<'a> UnsafeUnpin for Spell<'a>where
&'a str: UnsafeUnpin,
impl<'a> UnwindSafe for Spell<'a>where
&'a str: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.