Struct sdml_core::model::Identifier
source · pub struct Identifier { /* private fields */ }
Expand description
Corresponds the grammar rule identifier
.
Implementations§
source§impl Identifier
impl Identifier
pub fn new_unchecked(s: &str) -> Self
pub fn with_ts_span(self, ts_span: Span) -> Self
pub fn has_ts_span(&self) -> bool
pub fn ts_span(&self) -> Option<&Span>
pub fn set_ts_span(&mut self, span: Span)
pub fn unset_ts_span(&mut self)
pub fn with_module(&self, module: Identifier) -> QualifiedIdentifier
pub fn with_member(&self, member: Identifier) -> QualifiedIdentifier
pub fn is_valid(s: &str) -> bool
pub fn is_keyword(s: &str) -> bool
pub fn is_type_name(s: &str) -> bool
pub fn is_reserved_module_name(s: &str) -> bool
pub fn eq_with_span(&self, other: &Self) -> bool
Trait Implementations§
source§impl AsRef<str> for Identifier
impl AsRef<str> for Identifier
source§impl Clone for Identifier
impl Clone for Identifier
source§fn clone(&self) -> Identifier
fn clone(&self) -> Identifier
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 Identifier
impl Debug for Identifier
source§impl<'de> Deserialize<'de> for Identifier
impl<'de> Deserialize<'de> for Identifier
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for Identifier
impl Display for Identifier
source§impl From<&Identifier> for String
impl From<&Identifier> for String
source§fn from(value: &Identifier) -> Self
fn from(value: &Identifier) -> Self
Converts to this type from the input type.
source§impl From<Identifier> for ByReferenceMemberInner
impl From<Identifier> for ByReferenceMemberInner
source§fn from(value: Identifier) -> Self
fn from(value: Identifier) -> Self
Converts to this type from the input type.
source§impl From<Identifier> for ByValueMemberInner
impl From<Identifier> for ByValueMemberInner
source§fn from(value: Identifier) -> Self
fn from(value: Identifier) -> Self
Converts to this type from the input type.
source§impl From<Identifier> for IdentifierReference
impl From<Identifier> for IdentifierReference
source§fn from(v: Identifier) -> Self
fn from(v: Identifier) -> Self
Converts to this type from the input type.
source§impl From<Identifier> for IdentityMemberInner
impl From<Identifier> for IdentityMemberInner
source§fn from(value: Identifier) -> Self
fn from(value: Identifier) -> Self
Converts to this type from the input type.
source§impl From<Identifier> for Import
impl From<Identifier> for Import
source§fn from(v: Identifier) -> Self
fn from(v: Identifier) -> Self
Converts to this type from the input type.
source§impl From<Identifier> for String
impl From<Identifier> for String
source§fn from(value: Identifier) -> Self
fn from(value: Identifier) -> Self
Converts to this type from the input type.
source§impl From<Identifier> for Subject
impl From<Identifier> for Subject
source§fn from(v: Identifier) -> Self
fn from(v: Identifier) -> Self
Converts to this type from the input type.
source§impl From<Identifier> for TypeReference
impl From<Identifier> for TypeReference
source§fn from(value: Identifier) -> Self
fn from(value: Identifier) -> Self
Converts to this type from the input type.
source§impl FromStr for Identifier
impl FromStr for Identifier
source§impl Hash for Identifier
impl Hash for Identifier
source§impl PartialEq<Identifier> for Identifier
impl PartialEq<Identifier> for Identifier
source§impl Serialize for Identifier
impl Serialize for Identifier
impl Eq for Identifier
Auto Trait Implementations§
impl RefUnwindSafe for Identifier
impl Send for Identifier
impl Sync for Identifier
impl Unpin for Identifier
impl UnwindSafe for Identifier
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