pub struct StringBacked(/* private fields */);
Implementations§
Source§impl StringBacked
impl StringBacked
pub fn new(s: String) -> Self
pub fn as_ptr(&self) -> *const c_char
pub fn as_ptr_mut(&mut self) -> *mut c_char
pub fn as_string_ref(&self) -> StringRef
pub fn get(&self) -> &MlirStringRef
Sourcepub fn get_string(&self) -> &CString
pub fn get_string(&self) -> &CString
Returns the (owned) backing string.
pub fn get_mut(&mut self) -> &mut MlirStringRef
pub fn is_empty(&self) -> bool
pub fn is_null(&self) -> bool
pub fn len(&self) -> usize
Trait Implementations§
Source§impl Clone for StringBacked
impl Clone for StringBacked
Source§fn clone(&self) -> StringBacked
fn clone(&self) -> StringBacked
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 Default for StringBacked
impl Default for StringBacked
Source§impl Display for StringBacked
impl Display for StringBacked
Source§impl From<&MlirStringRef> for StringBacked
impl From<&MlirStringRef> for StringBacked
Source§fn from(s: &MlirStringRef) -> Self
fn from(s: &MlirStringRef) -> Self
Converts to this type from the input type.
Source§impl From<&String> for StringBacked
impl From<&String> for StringBacked
Source§impl From<&str> for StringBacked
impl From<&str> for StringBacked
Source§impl From<MlirStringRef> for StringBacked
impl From<MlirStringRef> for StringBacked
Source§fn from(s: MlirStringRef) -> Self
fn from(s: MlirStringRef) -> Self
Converts to this type from the input type.
Source§impl From<String> for StringBacked
impl From<String> for StringBacked
Source§impl FromStr for StringBacked
impl FromStr for StringBacked
Source§impl PartialEq for StringBacked
impl PartialEq for StringBacked
Auto Trait Implementations§
impl Freeze for StringBacked
impl RefUnwindSafe for StringBacked
impl !Send for StringBacked
impl !Sync for StringBacked
impl Unpin for StringBacked
impl UnwindSafe for StringBacked
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