pub struct Description {
pub name: String,
pub extensions: Vec<String>,
pub aliases: Vec<String>,
pub write: bool,
pub author: bool,
pub syntax: Option<String>,
pub features: Vec<Feature>,
pub sets: Vec<Set>,
pub samples: Vec<String>,
pub feature_samples: Vec<Sample>,
}Expand description
What a language says about itself.
Fields§
§name: StringA lowercase identifier no format already answers to.
extensions: Vec<String>Dot-less and lowercase, and no format’s already.
aliases: Vec<String>§write: boolWhether the language prints — Language::print is then called.
Whether the language authors: Description::syntax is then its
table.
syntax: Option<String>The table an editor writes with, as a JSON object — the shape
twig lang syntax <format> prints. Its renderers name what
Language::render answers.
features: Vec<Feature>§sets: Vec<Set>§samples: Vec<String>Small documents the load check holds the language to. At least one,
across this and Description::feature_samples, and at least one here.
feature_samples: Vec<Sample>Samples that need features on to mean what they say.
Trait Implementations§
Source§impl Clone for Description
impl Clone for Description
Source§impl Debug for Description
impl Debug for Description
Source§impl Default for Description
impl Default for Description
impl Eq for Description
Source§impl PartialEq for Description
impl PartialEq for Description
impl StructuralPartialEq for Description
Auto Trait Implementations§
impl Freeze for Description
impl RefUnwindSafe for Description
impl Send for Description
impl Sync for Description
impl Unpin for Description
impl UnsafeUnpin for Description
impl UnwindSafe for Description
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