pub struct RecoveredNamespaceRegion {
pub start: usize,
pub end: usize,
pub components: Vec<String>,
}Expand description
One run of a container’s children that tree-sitter parsed outside the namespaces that really enclose it, with the namespaces that do.
Fields§
§start: usizeStart byte of the first child in the run.
end: usizeEnd byte of the last child in the run.
components: Vec<String>The complete enclosing namespace path of the run, outermost first: the namespaces the parse tree still attributes to the container, then the ones recovery dropped.
Trait Implementations§
Source§impl Clone for RecoveredNamespaceRegion
impl Clone for RecoveredNamespaceRegion
Source§fn clone(&self) -> RecoveredNamespaceRegion
fn clone(&self) -> RecoveredNamespaceRegion
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 RecoveredNamespaceRegion
impl Debug for RecoveredNamespaceRegion
impl Eq for RecoveredNamespaceRegion
Source§impl PartialEq for RecoveredNamespaceRegion
impl PartialEq for RecoveredNamespaceRegion
impl StructuralPartialEq for RecoveredNamespaceRegion
Auto Trait Implementations§
impl Freeze for RecoveredNamespaceRegion
impl RefUnwindSafe for RecoveredNamespaceRegion
impl Send for RecoveredNamespaceRegion
impl Sync for RecoveredNamespaceRegion
impl Unpin for RecoveredNamespaceRegion
impl UnsafeUnpin for RecoveredNamespaceRegion
impl UnwindSafe for RecoveredNamespaceRegion
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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