Struct ra_ap_syntax::SyntaxError [−][src]
Represents the result of unsuccessful tokenization, parsing or tree validation.
Implementations
impl SyntaxError
[src]
pub fn new(message: impl Into<String>, range: TextRange) -> Self
[src]
pub fn new_at_offset(message: impl Into<String>, offset: TextSize) -> Self
[src]
pub fn range(&self) -> TextRange
[src]
pub fn with_range(mut self: Self, range: TextRange) -> Self
[src]
Trait Implementations
impl Clone for SyntaxError
[src]
fn clone(&self) -> SyntaxError
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for SyntaxError
[src]
impl Display for SyntaxError
[src]
impl Eq for SyntaxError
[src]
impl Hash for SyntaxError
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<SyntaxError> for SyntaxError
[src]
fn eq(&self, other: &SyntaxError) -> bool
[src]
fn ne(&self, other: &SyntaxError) -> bool
[src]
impl StructuralEq for SyntaxError
[src]
impl StructuralPartialEq for SyntaxError
[src]
Auto Trait Implementations
impl RefUnwindSafe for SyntaxError
[src]
impl Send for SyntaxError
[src]
impl Sync for SyntaxError
[src]
impl Unpin for SyntaxError
[src]
impl UnwindSafe for SyntaxError
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
pub fn equivalent(&self, key: &K) -> bool
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,