Struct clang::ObjCAttributes [] [src]

pub struct ObjCAttributes {
    pub readonly: bool,
    pub getter: bool,
    pub assign: bool,
    pub readwrite: bool,
    pub retain: bool,
    pub copy: bool,
    pub nonatomic: bool,
    pub setter: bool,
    pub atomic: bool,
    pub weak: bool,
    pub strong: bool,
    pub unsafe_retained: bool,
}

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.

Trait Implementations

impl Hash for ObjCAttributes
[src]

fn hash<__H: Hasher>(&self, __arg_0: &mut __H)

Feeds this value into the state given, updating the hasher as necessary.

fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher
1.3.0

Feeds a slice of this type into the state provided.

impl Eq for ObjCAttributes
[src]

impl PartialEq for ObjCAttributes
[src]

fn eq(&self, __arg_0: &ObjCAttributes) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, __arg_0: &ObjCAttributes) -> bool

This method tests for !=.

impl Debug for ObjCAttributes
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Clone for ObjCAttributes
[src]

fn clone(&self) -> ObjCAttributes

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl Copy for ObjCAttributes
[src]

impl From<CXObjCPropertyAttrKind> for ObjCAttributes
[src]

fn from(flags: CXObjCPropertyAttrKind) -> ObjCAttributes

Performs the conversion.

impl Into<CXObjCPropertyAttrKind> for ObjCAttributes
[src]

fn into(self) -> CXObjCPropertyAttrKind

Performs the conversion.