Struct clang::ObjCAttributes
source · [−]pub struct ObjCAttributes {}
Expand description
Indicates which attributes were applied to an Objective-C property.
Fields
readonly: bool
Indicates use of the readonly
attribute.
getter: bool
Indicates use of the getter
attribute.
assign: bool
Indicates use of the assign
attribute.
readwrite: bool
Indicates use of the readwrite
attribute.
retain: bool
Indicates use of the retain
attribute.
copy: bool
Indicates use of the copy
attribute.
nonatomic: bool
Indicates use of the nonatomic
attribute.
setter: bool
Indicates use of the setter
attribute.
atomic: bool
Indicates use of the atomic
attribute.
weak: bool
Indicates use of the weak
attribute.
strong: bool
Indicates use of the strong
attribute.
unsafe_retained: bool
Indicates use of the unsafe_retained
attribute.
class: bool
Indicates use of the class
attribute.
Trait Implementations
sourceimpl Clone for ObjCAttributes
impl Clone for ObjCAttributes
sourcefn clone(&self) -> ObjCAttributes
fn clone(&self) -> ObjCAttributes
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ObjCAttributes
impl Debug for ObjCAttributes
sourceimpl From<ObjCAttributes> for CXObjCPropertyAttrKind
impl From<ObjCAttributes> for CXObjCPropertyAttrKind
sourcefn from(options: ObjCAttributes) -> CXObjCPropertyAttrKind
fn from(options: ObjCAttributes) -> CXObjCPropertyAttrKind
Converts to this type from the input type.
sourceimpl From<i32> for ObjCAttributes
impl From<i32> for ObjCAttributes
sourcefn from(flags: CXObjCPropertyAttrKind) -> ObjCAttributes
fn from(flags: CXObjCPropertyAttrKind) -> ObjCAttributes
Converts to this type from the input type.
sourceimpl Hash for ObjCAttributes
impl Hash for ObjCAttributes
sourceimpl PartialEq<ObjCAttributes> for ObjCAttributes
impl PartialEq<ObjCAttributes> for ObjCAttributes
sourcefn eq(&self, other: &ObjCAttributes) -> bool
fn eq(&self, other: &ObjCAttributes) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ObjCAttributes) -> bool
fn ne(&self, other: &ObjCAttributes) -> bool
This method tests for !=
.
impl Copy for ObjCAttributes
impl Eq for ObjCAttributes
impl StructuralEq for ObjCAttributes
impl StructuralPartialEq for ObjCAttributes
Auto Trait Implementations
impl RefUnwindSafe for ObjCAttributes
impl Send for ObjCAttributes
impl Sync for ObjCAttributes
impl Unpin for ObjCAttributes
impl UnwindSafe for ObjCAttributes
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more