pub struct ConstructId {
pub package_id: PackageId,
pub construct_location: FileLocation,
pub construct_type: ConstructType,
pub construct_name: String,
}Fields§
§package_id: PackageIdId of the Package
construct_location: FileLocationLocation of the file enclosing the construct
construct_type: ConstructTypeType of construct (e.g. variable in `variable.value``)
construct_name: StringName of construct (e.g. value in `variable.value``)
Implementations§
Source§impl ConstructId
impl ConstructId
pub fn did(&self) -> ConstructDid
Sourcepub fn construct_type_str(&self) -> &str
pub fn construct_type_str(&self) -> &str
Get the construct type as a string reference.
This is a zero-cost conversion that returns a reference to a static string.
Trait Implementations§
Source§impl Clone for ConstructId
impl Clone for ConstructId
Source§fn clone(&self) -> ConstructId
fn clone(&self) -> ConstructId
Returns a duplicate 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 ConstructId
impl Debug for ConstructId
Source§impl<'de> Deserialize<'de> for ConstructId
impl<'de> Deserialize<'de> for ConstructId
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
Auto Trait Implementations§
impl Freeze for ConstructId
impl RefUnwindSafe for ConstructId
impl Send for ConstructId
impl Sync for ConstructId
impl Unpin for ConstructId
impl UnwindSafe for ConstructId
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