pub enum CompoundDelimitedContext {
Example,
Open,
Sidebar,
}Expand description
The context of a CompoundDelimitedBlock: the closed set of compound
delimited block types the parser recognizes.
Unlike the stringly-typed
resolved_context,
this enumerates exactly the contexts a CompoundDelimitedBlock can have,
making dispatch over them exhaustive and self-documenting. Use
CompoundDelimitedBlock::context_kind to obtain it.
Variants§
Implementations§
Source§impl CompoundDelimitedContext
impl CompoundDelimitedContext
Sourcepub fn as_str(self) -> &'static str
pub fn as_str(self) -> &'static str
Returns the canonical context string for this variant (e.g.,
"example"), matching resolved_context.
Trait Implementations§
Source§impl Clone for CompoundDelimitedContext
impl Clone for CompoundDelimitedContext
Source§fn clone(&self) -> CompoundDelimitedContext
fn clone(&self) -> CompoundDelimitedContext
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CompoundDelimitedContext
Source§impl Debug for CompoundDelimitedContext
impl Debug for CompoundDelimitedContext
impl Eq for CompoundDelimitedContext
Source§impl Hash for CompoundDelimitedContext
impl Hash for CompoundDelimitedContext
Source§impl PartialEq for CompoundDelimitedContext
impl PartialEq for CompoundDelimitedContext
Source§fn eq(&self, other: &CompoundDelimitedContext) -> bool
fn eq(&self, other: &CompoundDelimitedContext) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CompoundDelimitedContext
Auto Trait Implementations§
impl Freeze for CompoundDelimitedContext
impl RefUnwindSafe for CompoundDelimitedContext
impl Send for CompoundDelimitedContext
impl Sync for CompoundDelimitedContext
impl Unpin for CompoundDelimitedContext
impl UnsafeUnpin for CompoundDelimitedContext
impl UnwindSafe for CompoundDelimitedContext
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