pub struct Location(/* private fields */);
Implementations§
Source§impl Location
impl Location
pub fn new(context: &Context, name: &StringRef, line: usize, col: usize) -> Self
pub fn new_unknown(context: &Context) -> Self
pub fn from_call_site(callee: &Location, caller: &Location) -> Self
pub fn get(&self) -> &MlirLocation
pub fn get_attribute(&self) -> Attribute
pub fn get_context(&self) -> Context
pub fn get_mut(&mut self) -> &mut MlirLocation
pub fn is_null(&self) -> bool
pub fn print(&self, state: &mut StringCallbackState)
Trait Implementations§
Source§impl From<MlirLocation> for Location
impl From<MlirLocation> for Location
Source§fn from(loc: MlirLocation) -> Self
fn from(loc: MlirLocation) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Location
impl RefUnwindSafe for Location
impl !Send for Location
impl !Sync for Location
impl Unpin for Location
impl UnwindSafe for Location
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