pub struct Ruletable { /* private fields */ }Expand description
Internal Ruletable representation.
§Usage
The Ruletable is typically constructed using Ruletable::from_file or
Ruletable::from_multiline_string and then passed to reach.
Implementations§
Source§impl Ruletable
impl Ruletable
Sourcepub fn from_file(filename: &str) -> Result<Ruletable, ReadRuletableError>
pub fn from_file(filename: &str) -> Result<Ruletable, ReadRuletableError>
Constructs a Ruletable from the contents of a file.
§Errors
Returns an error if the file cannot be read or if parsing fails.
Sourcepub fn from_multiline_string(
ruletable_str: &str,
) -> Result<Ruletable, ReadRuletableError>
pub fn from_multiline_string( ruletable_str: &str, ) -> Result<Ruletable, ReadRuletableError>
Constructs a Ruletable from a multi-line string.
§Errors
Returns an error if parsing the input string fails.
Auto Trait Implementations§
impl Freeze for Ruletable
impl RefUnwindSafe for Ruletable
impl Send for Ruletable
impl Sync for Ruletable
impl Unpin for Ruletable
impl UnwindSafe for Ruletable
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