pub struct Directives {Show 13 fields
pub linelength: NamedDirective,
pub filelength: NamedDirective,
pub all: NamedDirective,
pub cr: NamedDirective,
pub undocumented_unsafe: NamedDirective,
pub tab: NamedDirective,
pub end_whitespace: NamedDirective,
pub trailing_newlines: NamedDirective,
pub leading_newlines: NamedDirective,
pub copyright: NamedDirective,
pub dbg: NamedDirective,
pub odd_backticks: NamedDirective,
pub todo: NamedDirective,
}Fields§
§linelength: NamedDirective§filelength: NamedDirective§all: NamedDirective§cr: NamedDirective§undocumented_unsafe: NamedDirective§tab: NamedDirective§end_whitespace: NamedDirective§trailing_newlines: NamedDirective§leading_newlines: NamedDirective§copyright: NamedDirective§dbg: NamedDirective§odd_backticks: NamedDirective§todo: NamedDirectiveImplementations§
Source§impl Directives
impl Directives
pub fn iter(&self) -> impl Iterator<Item = &NamedDirective>
pub fn iter_mut(&mut self) -> impl Iterator<Item = &mut NamedDirective>
pub fn create_child( &self, new: Directives, check: &mut RunningCheck, file: &Path, ) -> Directives
Source§impl Directives
impl Directives
pub fn check_usage(self, check: &mut RunningCheck, file: &Path)
pub fn from_str( path_str: &str, line_number: LineNumber, can_contain_directive_fastpath: bool, contents: &str, ) -> Self
pub fn parse(line_number: LineNumber, contents: &str) -> Self
Trait Implementations§
Source§impl Debug for Directives
impl Debug for Directives
Auto Trait Implementations§
impl !RefUnwindSafe for Directives
impl !Send for Directives
impl !Sync for Directives
impl !UnwindSafe for Directives
impl Freeze for Directives
impl Unpin for Directives
impl UnsafeUnpin for Directives
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
§impl<T> Pointable for T
impl<T> Pointable for T
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 832 bytes