pub struct ObjectiveCMethod {
pub kind: MethodKind,
pub selector: String,
pub return_type: Type,
pub parameters: Vec<Parameter>,
pub required: Option<bool>,
}Expand description
Objective-C method declaration.
Fields§
§kind: MethodKindInstance or class method.
selector: StringComplete selector spelling.
return_type: TypeReturn type.
parameters: Vec<Parameter>Selector parameters.
required: Option<bool>Required/optional state when declared in a protocol.
Trait Implementations§
Source§impl Clone for ObjectiveCMethod
impl Clone for ObjectiveCMethod
Source§fn clone(&self) -> ObjectiveCMethod
fn clone(&self) -> ObjectiveCMethod
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ObjectiveCMethod
impl Debug for ObjectiveCMethod
impl Eq for ObjectiveCMethod
Source§impl Hash for ObjectiveCMethod
impl Hash for ObjectiveCMethod
Source§impl PartialEq for ObjectiveCMethod
impl PartialEq for ObjectiveCMethod
impl StructuralPartialEq for ObjectiveCMethod
Auto Trait Implementations§
impl Freeze for ObjectiveCMethod
impl RefUnwindSafe for ObjectiveCMethod
impl Send for ObjectiveCMethod
impl Sync for ObjectiveCMethod
impl Unpin for ObjectiveCMethod
impl UnsafeUnpin for ObjectiveCMethod
impl UnwindSafe for ObjectiveCMethod
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