pub struct FaceSyntaxError {
pub message: String,
pub location: Option<SyntaxLocation>,
}Expand description
Why a declaration could not be parsed, and where when that is known. 声明为何解析不了;位置已知时一并给出。
Fields§
§message: StringHuman-readable reason. 人类可读的原因。
location: Option<SyntaxLocation>Where parsing failed; None when the failure is about the file as a whole.
解析失败的位置;失败针对整个文件时为 None。
Trait Implementations§
Source§impl Clone for FaceSyntaxError
impl Clone for FaceSyntaxError
Source§fn clone(&self) -> FaceSyntaxError
fn clone(&self) -> FaceSyntaxError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FaceSyntaxError
impl Debug for FaceSyntaxError
Source§impl Display for FaceSyntaxError
impl Display for FaceSyntaxError
impl Eq for FaceSyntaxError
Source§impl Error for FaceSyntaxError
impl Error for FaceSyntaxError
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 FaceSyntaxError
impl PartialEq for FaceSyntaxError
impl StructuralPartialEq for FaceSyntaxError
Auto Trait Implementations§
impl Freeze for FaceSyntaxError
impl RefUnwindSafe for FaceSyntaxError
impl Send for FaceSyntaxError
impl Sync for FaceSyntaxError
impl Unpin for FaceSyntaxError
impl UnsafeUnpin for FaceSyntaxError
impl UnwindSafe for FaceSyntaxError
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