pub enum ContextSpec {
Named {
origin_scope: String,
name: String,
},
Inline {
origin_scope: String,
context: CompiledContext,
},
}Expand description
A context reference used in stack operations.
Variants§
Named
Push a named context.
Fields
Inline
Push an inline (anonymous) context.
Fields
§
context: CompiledContextCompiled context content.
Trait Implementations§
Source§impl Clone for ContextSpec
impl Clone for ContextSpec
Source§fn clone(&self) -> ContextSpec
fn clone(&self) -> ContextSpec
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ContextSpec
impl RefUnwindSafe for ContextSpec
impl Send for ContextSpec
impl Sync for ContextSpec
impl Unpin for ContextSpec
impl UnsafeUnpin for ContextSpec
impl UnwindSafe for ContextSpec
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