pub struct String(/* private fields */);
Implementations§
Source§impl String
impl String
pub fn new(context: &Context, s: &StringRef) -> Self
pub fn new_typed(t: &Type, s: &StringRef) -> Self
pub fn from_checked(attr_: MlirAttribute) -> Self
pub fn get(&self) -> &MlirAttribute
pub fn get_mut(&mut self) -> &mut MlirAttribute
pub fn get_string(&self) -> StringRef
pub fn get_type_id() -> TypeID
Trait Implementations§
Source§impl From<MlirAttribute> for String
impl From<MlirAttribute> for String
Source§fn from(attr: MlirAttribute) -> Self
fn from(attr: MlirAttribute) -> Self
Converts to this type from the input type.
Source§impl IAttribute for String
impl IAttribute for String
fn get(&self) -> &MlirAttribute
fn get_mut(&mut self) -> &mut MlirAttribute
fn as_attribute(&self) -> Attribute
fn get_context(&self) -> Context
fn get_type(&self) -> Type
Auto Trait Implementations§
impl Freeze for String
impl RefUnwindSafe for String
impl !Send for String
impl !Sync for String
impl Unpin for String
impl UnwindSafe for String
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