pub struct SrIdentifier {
pub unresolved: String,
pub resolved: Option<String>,
pub type_reference: Option<String>,
pub kind: SrIdentifierKind,
pub is_definition: bool,
}Expand description
Struct representing an identifier in the simplified representation.
Fields§
§unresolved: String§resolved: Option<String>§type_reference: Option<String>§kind: SrIdentifierKind§is_definition: boolImplementations§
source§impl SrIdentifier
impl SrIdentifier
pub fn new(unresolved: String, kind: SrIdentifierKind) -> Self
Trait Implementations§
source§impl Clone for SrIdentifier
impl Clone for SrIdentifier
source§fn clone(&self) -> SrIdentifier
fn clone(&self) -> SrIdentifier
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 SrIdentifier
impl Debug for SrIdentifier
source§impl From<SrIdentifier> for SrType
impl From<SrIdentifier> for SrType
source§fn from(value: SrIdentifier) -> Self
fn from(value: SrIdentifier) -> Self
Converts to this type from the input type.
source§impl PartialEq for SrIdentifier
impl PartialEq for SrIdentifier
source§fn eq(&self, other: &SrIdentifier) -> bool
fn eq(&self, other: &SrIdentifier) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for SrIdentifier
Auto Trait Implementations§
impl RefUnwindSafe for SrIdentifier
impl Send for SrIdentifier
impl Sync for SrIdentifier
impl Unpin for SrIdentifier
impl UnwindSafe for SrIdentifier
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