pub enum SyntaxError {
Show 14 variants
MissingOpeningMarker {
line: usize,
},
MissingClosingMarker {
line: usize,
},
MultipleGuideBlocks {
line: usize,
},
EmptyGuideBlock,
InvalidListFormat {
line: usize,
},
DirectoryMissingSlash {
line: usize,
path: String,
},
InvalidSpecialDirectory {
line: usize,
path: String,
},
InconsistentIndentation {
line: usize,
expected: usize,
found: usize,
},
InvalidIndentationLevel {
line: usize,
},
BlankLineInGuide {
line: usize,
},
InvalidPathFormat {
line: usize,
path: String,
},
InvalidCommentFormat {
line: usize,
},
AdjacentPlaceholders {
line: usize,
},
PlaceholderWithChildren {
line: usize,
},
}
Expand description
Syntax errors in navigation guide format
Variants§
MissingOpeningMarker
Missing opening sentinel marker
MissingClosingMarker
Missing closing sentinel marker
MultipleGuideBlocks
Multiple guide blocks found
EmptyGuideBlock
Empty guide block
InvalidListFormat
Invalid list format
DirectoryMissingSlash
Directory missing trailing slash
InvalidSpecialDirectory
Invalid special directory
InconsistentIndentation
Inconsistent indentation
InvalidIndentationLevel
Invalid indentation level
BlankLineInGuide
Blank line in guide block
InvalidPathFormat
Invalid path format
InvalidCommentFormat
Invalid comment format
AdjacentPlaceholders
Adjacent placeholders
PlaceholderWithChildren
Placeholder with children
Implementations§
Source§impl SyntaxError
impl SyntaxError
Sourcepub fn line_number(&self) -> Option<usize>
pub fn line_number(&self) -> Option<usize>
Get the line number associated with this error, if any
Trait Implementations§
Source§impl Debug for SyntaxError
impl Debug for SyntaxError
Source§impl Display for SyntaxError
impl Display for SyntaxError
Source§impl Error for SyntaxError
impl Error for SyntaxError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<SyntaxError> for AppError
impl From<SyntaxError> for AppError
Source§fn from(source: SyntaxError) -> Self
fn from(source: SyntaxError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SyntaxError
impl PartialEq for SyntaxError
impl Eq for SyntaxError
impl StructuralPartialEq for SyntaxError
Auto Trait Implementations§
impl Freeze for SyntaxError
impl RefUnwindSafe for SyntaxError
impl Send for SyntaxError
impl Sync for SyntaxError
impl Unpin for SyntaxError
impl UnwindSafe for SyntaxError
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