[−][src]Struct rslint_core::CstRuleStore
Fields
rules: Vec<Box<dyn CstRule>>
Implementations
impl CstRuleStore
[src]
pub fn new() -> Self
[src]
pub fn builtins(self) -> Self
[src]
All built in rules from every group.
pub fn load_rules(&mut self, rules: impl IntoIterator<Item = Box<dyn CstRule>>)
[src]
pub fn get(&self, rule_name: impl AsRef<str>) -> Option<Box<dyn CstRule>>
[src]
Get a rule using its rule name from this store.
Examples
use rslint_core::CstRuleStore; assert!(CstRuleStore::new().builtins().get("no-empty").is_some())
Trait Implementations
impl Clone for CstRuleStore
[src]
fn clone(&self) -> CstRuleStore
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for CstRuleStore
[src]
impl Default for CstRuleStore
[src]
fn default() -> CstRuleStore
[src]
Auto Trait Implementations
impl !RefUnwindSafe for CstRuleStore
impl Send for CstRuleStore
impl Sync for CstRuleStore
impl Unpin for CstRuleStore
impl !UnwindSafe for CstRuleStore
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DynClone for T where
T: Clone,
[src]
T: Clone,
impl<T> Erasable for T
unsafe fn unerase(this: NonNull<Erased>) -> NonNull<T>
const ACK_1_1_0: bool
fn erase(this: NonNull<Self>) -> NonNull<Erased>
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,