pub struct CodeLanguage {
pub canonical: &'static str,
pub aliases: &'static [&'static str],
}Expand description
Canonical code-language name plus accepted aliases.
Fields§
§canonical: &'static strCanonical name used for display and (typically) for syntect token lookup.
aliases: &'static [&'static str]Lowercase aliases commonly used in fenced code blocks.
Trait Implementations§
Source§impl Clone for CodeLanguage
impl Clone for CodeLanguage
Source§fn clone(&self) -> CodeLanguage
fn clone(&self) -> CodeLanguage
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 moreSource§impl Debug for CodeLanguage
impl Debug for CodeLanguage
impl Copy for CodeLanguage
Auto Trait Implementations§
impl Freeze for CodeLanguage
impl RefUnwindSafe for CodeLanguage
impl Send for CodeLanguage
impl Sync for CodeLanguage
impl Unpin for CodeLanguage
impl UnsafeUnpin for CodeLanguage
impl UnwindSafe for CodeLanguage
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