pub struct ConstructRuleRegistry { /* private fields */ }Expand description
A registry of construct indent rules.
Implementations§
Source§impl ConstructRuleRegistry
impl ConstructRuleRegistry
pub fn new() -> Self
pub fn add(&mut self, rule: ConstructIndentRule)
pub fn lookup(&self, name: &str) -> Option<&ConstructIndentRule>
pub fn body_indent(&self, name: &str) -> usize
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ConstructRuleRegistry
impl RefUnwindSafe for ConstructRuleRegistry
impl Send for ConstructRuleRegistry
impl Sync for ConstructRuleRegistry
impl Unpin for ConstructRuleRegistry
impl UnsafeUnpin for ConstructRuleRegistry
impl UnwindSafe for ConstructRuleRegistry
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