pub struct RustSyntaxError { /* private fields */ }Expand description
Error returned when Rust syntax metadata fails to parse.
Implementations§
Source§impl RustSyntaxError
impl RustSyntaxError
Sourcepub const fn kind(&self) -> RustSyntaxKind
pub const fn kind(&self) -> RustSyntaxKind
Returns the syntax kind that failed to parse.
Sourcepub fn source_error(&self) -> &str
pub fn source_error(&self) -> &str
Returns the parser error message from syn.
Trait Implementations§
Source§impl Clone for RustSyntaxError
impl Clone for RustSyntaxError
Source§impl Debug for RustSyntaxError
impl Debug for RustSyntaxError
Source§impl Display for RustSyntaxError
impl Display for RustSyntaxError
impl Eq for RustSyntaxError
Source§impl Error for RustSyntaxError
impl Error for RustSyntaxError
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 PartialEq for RustSyntaxError
impl PartialEq for RustSyntaxError
impl StructuralPartialEq for RustSyntaxError
Auto Trait Implementations§
impl Freeze for RustSyntaxError
impl RefUnwindSafe for RustSyntaxError
impl Send for RustSyntaxError
impl Sync for RustSyntaxError
impl Unpin for RustSyntaxError
impl UnsafeUnpin for RustSyntaxError
impl UnwindSafe for RustSyntaxError
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