#[non_exhaustive]pub struct RulepackDict {
pub name: String,
pub terms: Vec<String>,
pub case_sensitive: bool,
}Expand description
Dictionary declared by a rulepack.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringDictionary name.
terms: Vec<String>Dictionary terms.
case_sensitive: boolWhether matching is case-sensitive.
Implementations§
Trait Implementations§
Source§impl Clone for RulepackDict
impl Clone for RulepackDict
Source§fn clone(&self) -> RulepackDict
fn clone(&self) -> RulepackDict
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 RulepackDict
impl Debug for RulepackDict
Source§impl PartialEq for RulepackDict
impl PartialEq for RulepackDict
Source§fn eq(&self, other: &RulepackDict) -> bool
fn eq(&self, other: &RulepackDict) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for RulepackDict
impl StructuralPartialEq for RulepackDict
Auto Trait Implementations§
impl Freeze for RulepackDict
impl RefUnwindSafe for RulepackDict
impl Send for RulepackDict
impl Sync for RulepackDict
impl Unpin for RulepackDict
impl UnsafeUnpin for RulepackDict
impl UnwindSafe for RulepackDict
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