pub struct IdentifierNode {
pub range: Range,
pub name: String,
}Fields§
§range: Range§name: StringImplementations§
Source§impl IdentifierNode
impl IdentifierNode
Sourcepub fn position_in_namespace(&self, pos: Position) -> bool
pub fn position_in_namespace(&self, pos: Position) -> bool
Check if the position is in the namespace.
Sourcepub fn split_by_first_dot(&self) -> (Option<IdentifierNode>, IdentifierNode)
pub fn split_by_first_dot(&self) -> (Option<IdentifierNode>, IdentifierNode)
Split the identifier by the first dot.
Trait Implementations§
Source§impl Clone for IdentifierNode
impl Clone for IdentifierNode
Source§fn clone(&self) -> IdentifierNode
fn clone(&self) -> IdentifierNode
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 IdentifierNode
impl Debug for IdentifierNode
Auto Trait Implementations§
impl Freeze for IdentifierNode
impl RefUnwindSafe for IdentifierNode
impl Send for IdentifierNode
impl Sync for IdentifierNode
impl Unpin for IdentifierNode
impl UnsafeUnpin for IdentifierNode
impl UnwindSafe for IdentifierNode
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