pub struct Feature {
pub name: String,
pub default: bool,
pub requires: Vec<String>,
pub syntax: Option<String>,
}Expand description
A switch the language’s parser reads.
Fields§
§name: StringA lowercase identifier.
default: boolWhether the language’s own row has it on.
requires: Vec<String>Features that come on with this one.
syntax: Option<String>A JSON object of the table’s members this feature replaces while it
is on — per key in inline_delims, text_leaf_delims and
container_spelling. No two features may patch the same one.
Trait Implementations§
impl Eq for Feature
impl StructuralPartialEq for Feature
Auto Trait Implementations§
impl Freeze for Feature
impl RefUnwindSafe for Feature
impl Send for Feature
impl Sync for Feature
impl Unpin for Feature
impl UnsafeUnpin for Feature
impl UnwindSafe for Feature
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