Struct cairo_lang_syntax::node::ast::TokenRefGreen
source · pub struct TokenRefGreen(pub GreenId);
Tuple Fields§
§0: GreenId
Implementations§
source§impl TokenRefGreen
impl TokenRefGreen
pub fn text(&self, db: &dyn SyntaxGroup) -> SmolStr
Trait Implementations§
source§impl Clone for TokenRefGreen
impl Clone for TokenRefGreen
source§fn clone(&self) -> TokenRefGreen
fn clone(&self) -> TokenRefGreen
Returns a copy of the value. Read more
1.0.0 · 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 TokenRefGreen
impl Debug for TokenRefGreen
source§impl Hash for TokenRefGreen
impl Hash for TokenRefGreen
source§impl PartialEq for TokenRefGreen
impl PartialEq for TokenRefGreen
source§fn eq(&self, other: &TokenRefGreen) -> bool
fn eq(&self, other: &TokenRefGreen) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for TokenRefGreen
impl Eq for TokenRefGreen
impl StructuralEq for TokenRefGreen
impl StructuralPartialEq for TokenRefGreen
Auto Trait Implementations§
impl RefUnwindSafe for TokenRefGreen
impl Send for TokenRefGreen
impl Sync for TokenRefGreen
impl Unpin for TokenRefGreen
impl UnwindSafe for TokenRefGreen
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.