Struct sway_types::ident::BaseIdent
source · pub struct BaseIdent { /* private fields */ }
Implementations§
source§impl BaseIdent
impl BaseIdent
pub fn as_str(&self) -> &str
pub fn is_raw_ident(&self) -> bool
pub fn name_override_opt(&self) -> Option<&str>
pub fn new(span: Span) -> Ident
pub fn new_no_trim(span: Span) -> Ident
pub fn new_with_raw(span: Span, is_raw_ident: bool) -> Ident
pub fn new_with_override(name_override: String, span: Span) -> Ident
pub fn new_no_span(name: String) -> Ident
Trait Implementations§
source§impl From<&BaseIdent> for IdentUnique
impl From<&BaseIdent> for IdentUnique
source§impl From<BaseIdent> for IdentUnique
impl From<BaseIdent> for IdentUnique
source§impl PartialEq<BaseIdent> for Ident
impl PartialEq<BaseIdent> for Ident
source§impl PartialOrd<BaseIdent> for Ident
impl PartialOrd<BaseIdent> for Ident
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreAuto Trait Implementations§
impl RefUnwindSafe for BaseIdent
impl Send for BaseIdent
impl Sync for BaseIdent
impl Unpin for BaseIdent
impl UnwindSafe for BaseIdent
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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more