Enum cairo_lang_syntax::node::ast::UsePath
source · pub enum UsePath {
Leaf(UsePathLeaf),
Single(UsePathSingle),
Multi(UsePathMulti),
}
Variants§
Implementations§
source§impl UsePath
impl UsePath
pub fn is_variant(kind: SyntaxKind) -> bool
Trait Implementations§
source§impl PartialEq for UsePath
impl PartialEq for UsePath
source§impl TypedSyntaxNode for UsePath
impl TypedSyntaxNode for UsePath
source§const OPTIONAL_KIND: Option<SyntaxKind> = None
const OPTIONAL_KIND: Option<SyntaxKind> = None
The relevant SyntaxKind. None for enums.
type StablePtr = UsePathPtr
type Green = UsePathGreen
fn missing(db: &dyn SyntaxGroup) -> Self::Green
fn from_syntax_node(db: &dyn SyntaxGroup, node: SyntaxNode) -> Self
fn as_syntax_node(&self) -> SyntaxNode
fn stable_ptr(&self) -> Self::StablePtr
impl Eq for UsePath
impl StructuralPartialEq for UsePath
Auto Trait Implementations§
impl Freeze for UsePath
impl RefUnwindSafe for UsePath
impl Send for UsePath
impl Sync for UsePath
impl Unpin for UsePath
impl UnwindSafe for UsePath
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<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<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.