pub struct SyntaxNodeInfo {
pub kind: String,
pub start_byte: usize,
pub end_byte: usize,
pub start_position: (usize, usize),
pub end_position: (usize, usize),
pub is_named: bool,
pub has_error: bool,
}Expand description
Syntax node representation from code block parsing.
Fields§
§kind: String§start_byte: usize§end_byte: usize§start_position: (usize, usize)§end_position: (usize, usize)§is_named: bool§has_error: boolTrait Implementations§
Source§impl Clone for SyntaxNodeInfo
impl Clone for SyntaxNodeInfo
Source§fn clone(&self) -> SyntaxNodeInfo
fn clone(&self) -> SyntaxNodeInfo
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 SyntaxNodeInfo
impl Debug for SyntaxNodeInfo
Source§impl<'de> Deserialize<'de> for SyntaxNodeInfo
impl<'de> Deserialize<'de> for SyntaxNodeInfo
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for SyntaxNodeInfo
Source§impl PartialEq for SyntaxNodeInfo
impl PartialEq for SyntaxNodeInfo
Source§impl Serialize for SyntaxNodeInfo
impl Serialize for SyntaxNodeInfo
impl StructuralPartialEq for SyntaxNodeInfo
Auto Trait Implementations§
impl Freeze for SyntaxNodeInfo
impl RefUnwindSafe for SyntaxNodeInfo
impl Send for SyntaxNodeInfo
impl Sync for SyntaxNodeInfo
impl Unpin for SyntaxNodeInfo
impl UnsafeUnpin for SyntaxNodeInfo
impl UnwindSafe for SyntaxNodeInfo
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more