pub enum KeywordList {
Auto,
Manual {
keywords: Vec<(Span, String)>,
strict: bool,
},
}Expand description
A keyword list; part of the #keywords preamble.
Variants§
Auto
Keywords that appear within a rule are added to the keyword list automatically.
Manual
Keywords are declared ahead of time; keywords used outside the list constitute an error.
Trait Implementations§
Source§impl Clone for KeywordList
impl Clone for KeywordList
Source§fn clone(&self) -> KeywordList
fn clone(&self) -> KeywordList
Returns a duplicate of the value. Read more
1.0.0 · 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 KeywordList
impl Debug for KeywordList
Source§impl Default for KeywordList
impl Default for KeywordList
Source§fn default() -> KeywordList
fn default() -> KeywordList
Returns the “default value” for a type. Read more
Source§impl Display for KeywordList
impl Display for KeywordList
Source§impl Hash for KeywordList
impl Hash for KeywordList
Source§impl Ord for KeywordList
impl Ord for KeywordList
Source§fn cmp(&self, other: &KeywordList) -> Ordering
fn cmp(&self, other: &KeywordList) -> Ordering
1.21.0 · 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 PartialEq for KeywordList
impl PartialEq for KeywordList
Source§impl PartialOrd for KeywordList
impl PartialOrd for KeywordList
impl Eq for KeywordList
impl StructuralPartialEq for KeywordList
Auto Trait Implementations§
impl Freeze for KeywordList
impl RefUnwindSafe for KeywordList
impl Send for KeywordList
impl Sync for KeywordList
impl Unpin for KeywordList
impl UnsafeUnpin for KeywordList
impl UnwindSafe for KeywordList
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