pub struct SyntaxError(/* private fields */);Expand description
Occurs when an argument does not match the expected pattern.
Trait Implementations§
Source§impl AsRef<Reference> for SyntaxError
impl AsRef<Reference> for SyntaxError
Source§impl Clone for SyntaxError
impl Clone for SyntaxError
Source§fn clone(&self) -> SyntaxError
fn clone(&self) -> SyntaxError
Returns a duplicate of the value. Read more
1.0.0 · 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 SyntaxError
impl Debug for SyntaxError
Source§impl Display for SyntaxError
impl Display for SyntaxError
Source§impl Error for SyntaxError
impl Error for SyntaxError
Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
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
Source§impl From<SyntaxError> for DomException
impl From<SyntaxError> for DomException
Source§fn from(value: SyntaxError) -> Self
fn from(value: SyntaxError) -> Self
Converts to this type from the input type.
Source§impl From<SyntaxError> for Error
impl From<SyntaxError> for Error
Source§fn from(value: SyntaxError) -> Self
fn from(value: SyntaxError) -> Self
Converts to this type from the input type.
Source§impl From<SyntaxError> for Reference
impl From<SyntaxError> for Reference
Source§fn from(value: SyntaxError) -> Self
fn from(value: SyntaxError) -> Self
Converts to this type from the input type.
Source§impl IError for SyntaxError
impl IError for SyntaxError
Source§impl InstanceOf for SyntaxError
impl InstanceOf for SyntaxError
Source§impl PartialEq for SyntaxError
impl PartialEq for SyntaxError
Source§impl ReferenceType for SyntaxError
impl ReferenceType for SyntaxError
Source§unsafe fn from_reference_unchecked(reference: Reference) -> Self
unsafe fn from_reference_unchecked(reference: Reference) -> Self
Converts a given reference into a concrete reference-like wrapper.
Doesn’t do any type checking; highly unsafe to use!
Source§impl<'_r> TryFrom<&'_r Reference> for SyntaxError
impl<'_r> TryFrom<&'_r Reference> for SyntaxError
Source§impl<'_r> TryFrom<&'_r Value> for SyntaxError
impl<'_r> TryFrom<&'_r Value> for SyntaxError
Source§impl TryFrom<DomException> for SyntaxError
impl TryFrom<DomException> for SyntaxError
Source§impl TryFrom<Error> for SyntaxError
impl TryFrom<Error> for SyntaxError
Source§impl TryFrom<Reference> for SyntaxError
impl TryFrom<Reference> for SyntaxError
Source§impl TryFrom<SyntaxError> for Reference
impl TryFrom<SyntaxError> for Reference
Source§impl TryFrom<Value> for SyntaxError
impl TryFrom<Value> for SyntaxError
impl Eq for SyntaxError
impl IDomException for SyntaxError
impl JsSerialize 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