Struct melior::ContextRef
source · pub struct ContextRef<'c> { /* private fields */ }
Expand description
A reference to a context.
Implementations§
source§impl<'c> ContextRef<'c>
impl<'c> ContextRef<'c>
sourcepub unsafe fn from_raw(raw: MlirContext) -> Self
pub unsafe fn from_raw(raw: MlirContext) -> Self
Trait Implementations§
source§impl<'c> Clone for ContextRef<'c>
impl<'c> Clone for ContextRef<'c>
source§fn clone(&self) -> ContextRef<'c>
fn clone(&self) -> ContextRef<'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 ContextRef<'c>
impl<'c> Debug for ContextRef<'c>
source§impl<'c> PartialEq<Context> for ContextRef<'c>
impl<'c> PartialEq<Context> for ContextRef<'c>
source§impl<'a> PartialEq<ContextRef<'a>> for Context
impl<'a> PartialEq<ContextRef<'a>> for Context
source§fn eq(&self, other: &ContextRef<'a>) -> bool
fn eq(&self, other: &ContextRef<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'c> PartialEq for ContextRef<'c>
impl<'c> PartialEq for ContextRef<'c>
impl<'c> Copy for ContextRef<'c>
impl<'c> Eq for ContextRef<'c>
Auto Trait Implementations§
impl<'c> RefUnwindSafe for ContextRef<'c>
impl<'c> !Send for ContextRef<'c>
impl<'c> !Sync for ContextRef<'c>
impl<'c> Unpin for ContextRef<'c>
impl<'c> UnwindSafe for ContextRef<'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