pub enum Adapter {
Markdown,
Mdx,
PlainAdvisory,
}Expand description
The three closed source adapters. Every wire string an adapter contributes (identity, grammar profile, frontmatter contract, projection, address scheme) is frozen here so no call site can spell one by hand.
Variants§
Implementations§
Source§impl Adapter
impl Adapter
pub const ALL: [Self; 3]
pub const fn adapter_id(self) -> &'static str
pub const fn parser_name(self) -> &'static str
pub const fn grammar_profile(self) -> &'static str
pub const fn frontmatter_contract(self) -> &'static str
pub const fn source_projection(self) -> &'static str
pub const fn structural_address(self) -> &'static str
Trait Implementations§
impl Copy for Adapter
impl Eq for Adapter
Source§impl Ord for Adapter
impl Ord for Adapter
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for Adapter
impl PartialOrd for Adapter
impl StructuralPartialEq for Adapter
Auto Trait Implementations§
impl Freeze for Adapter
impl RefUnwindSafe for Adapter
impl Send for Adapter
impl Sync for Adapter
impl Unpin for Adapter
impl UnsafeUnpin for Adapter
impl UnwindSafe for Adapter
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