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 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<'c> Debug for ContextRef<'c>
impl<'c> Debug for ContextRef<'c>
Source§impl PartialEq<Context> for ContextRef<'_>
impl PartialEq<Context> for ContextRef<'_>
Source§impl<'a> PartialEq<ContextRef<'a>> for Context
impl<'a> PartialEq<ContextRef<'a>> for Context
Source§impl PartialEq for ContextRef<'_>
impl PartialEq for ContextRef<'_>
impl<'c> Copy for ContextRef<'c>
impl Eq for ContextRef<'_>
Auto Trait Implementations§
impl<'c> Freeze for ContextRef<'c>
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