Struct mlir_sys::MlirStringRef
source · #[repr(C)]pub struct MlirStringRef {
pub data: *const c_char,
pub length: usize,
}
Expand description
A pointer to a sized fragment of a string, not necessarily null-terminated. Does not own the underlying string. This is equivalent to llvm::StringRef.
Fields§
§data: *const c_char
< Pointer to the first symbol.
length: usize
< Length of the fragment.
Trait Implementations§
source§impl Clone for MlirStringRef
impl Clone for MlirStringRef
source§fn clone(&self) -> MlirStringRef
fn clone(&self) -> MlirStringRef
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 Debug for MlirStringRef
impl Debug for MlirStringRef
impl Copy for MlirStringRef
Auto Trait Implementations§
impl RefUnwindSafe for MlirStringRef
impl !Send for MlirStringRef
impl !Sync for MlirStringRef
impl Unpin for MlirStringRef
impl UnwindSafe for MlirStringRef
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