pub enum IndentedBlockResult {
Ok {
lines: Vec<String>,
minimum_indent: usize,
offset: usize,
blank_finish: bool,
},
EmptyLinesErr,
UnfinishedErr {
lines: Vec<String>,
minimum_indent: usize,
offset: usize,
blank_finish: bool,
},
}Expand description
A enumeration of the different ways the function Parser::read_indented_block could succeed or fail.
Variants§
Ok
The reading of the text block succeeded as intended
EmptyLinesErr
The given line vector was empty
UnfinishedErr
Auto Trait Implementations§
impl Freeze for IndentedBlockResult
impl RefUnwindSafe for IndentedBlockResult
impl Send for IndentedBlockResult
impl Sync for IndentedBlockResult
impl Unpin for IndentedBlockResult
impl UnwindSafe for IndentedBlockResult
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