pub struct StringRef<'a> { /* private fields */ }
Expand description
A string reference.
Implementations§
source§impl<'a> StringRef<'a>
impl<'a> StringRef<'a>
sourcepub fn from_c_str(string: &'a CStr) -> Self
pub fn from_c_str(string: &'a CStr) -> Self
Converts a C-style string into a string reference.
sourcepub const fn to_raw(self) -> MlirStringRef
pub const fn to_raw(self) -> MlirStringRef
Converts a string reference into a raw object.
sourcepub unsafe fn from_raw(string: MlirStringRef) -> Self
pub unsafe fn from_raw(string: MlirStringRef) -> Self
Trait Implementations§
source§impl<'a> PartialEq for StringRef<'a>
impl<'a> PartialEq for StringRef<'a>
impl<'a> Copy for StringRef<'a>
impl<'a> Eq for StringRef<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for StringRef<'a>
impl<'a> !Send for StringRef<'a>
impl<'a> !Sync for StringRef<'a>
impl<'a> Unpin for StringRef<'a>
impl<'a> UnwindSafe for StringRef<'a>
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