pub struct StringAttribute { /* private fields */ }Implementations§
Methods from Deref<Target = Attribute>§
pub fn is_enum_attribute(&self) -> bool
pub fn is_string_attribute(&self) -> bool
pub fn is_type_attribute(&self) -> bool
Trait Implementations§
Source§impl Deref for StringAttribute
impl Deref for StringAttribute
Source§impl Opaque for StringAttribute
impl Opaque for StringAttribute
type Inner = LLVMOpaqueAttributeRef
Source§unsafe fn try_from_raw<'a>(ptr: *mut Self::Inner) -> Option<&'a Self>
unsafe fn try_from_raw<'a>(ptr: *mut Self::Inner) -> Option<&'a Self>
Try to create ref from nonnull raw pointer and check cond.
Source§unsafe fn from_raw<'r>(ptr: *mut Self::Inner) -> &'r Self
unsafe fn from_raw<'r>(ptr: *mut Self::Inner) -> &'r Self
Try to create ref from nonnull raw pointer but don’t check cond.
Source§unsafe fn from_ptr<'r>(ptr: *mut Self::Inner) -> Option<&'r Self>
unsafe fn from_ptr<'r>(ptr: *mut Self::Inner) -> Option<&'r Self>
Try to create ref from nullable raw pointer.
Source§unsafe fn cast_unchecked<T: Opaque<Inner = Self::Inner>>(&self) -> &T
unsafe fn cast_unchecked<T: Opaque<Inner = Self::Inner>>(&self) -> &T
Cast to target but don’t check cond.
fn cast<T: Opaque<Inner = Self::Inner>>(&self) -> &T
Auto Trait Implementations§
impl !Freeze for StringAttribute
impl !RefUnwindSafe for StringAttribute
impl !Sync for StringAttribute
impl !Unpin for StringAttribute
impl !UnsafeUnpin for StringAttribute
impl Send for StringAttribute
impl UnwindSafe for StringAttribute
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