Struct melior::ir::Identifier
source · pub struct Identifier<'c> { /* private fields */ }
Expand description
An identifier.
Implementations§
source§impl<'c> Identifier<'c>
impl<'c> Identifier<'c>
sourcepub fn context(&self) -> ContextRef<'c>
pub fn context(&self) -> ContextRef<'c>
Returns a context.
sourcepub fn as_string_ref(&self) -> StringRef<'_>
pub fn as_string_ref(&self) -> StringRef<'_>
Converts an identifier into a string reference.
sourcepub unsafe fn from_raw(raw: MlirIdentifier) -> Self
pub unsafe fn from_raw(raw: MlirIdentifier) -> Self
sourcepub const fn to_raw(self) -> MlirIdentifier
pub const fn to_raw(self) -> MlirIdentifier
Converts a location into a raw object.
Trait Implementations§
source§impl<'c> Clone for Identifier<'c>
impl<'c> Clone for Identifier<'c>
source§fn clone(&self) -> Identifier<'c>
fn clone(&self) -> Identifier<'c>
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<'c> Debug for Identifier<'c>
impl<'c> Debug for Identifier<'c>
source§impl<'c> PartialEq for Identifier<'c>
impl<'c> PartialEq for Identifier<'c>
impl<'c> Copy for Identifier<'c>
impl<'c> Eq for Identifier<'c>
Auto Trait Implementations§
impl<'c> RefUnwindSafe for Identifier<'c>
impl<'c> !Send for Identifier<'c>
impl<'c> !Sync for Identifier<'c>
impl<'c> Unpin for Identifier<'c>
impl<'c> UnwindSafe for Identifier<'c>
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