pub struct SwiftClassDecl {
pub name: String,
pub superclass: Option<String>,
pub fields: Vec<SwiftField>,
pub methods: Vec<SwiftFunc>,
pub conformances: Vec<SwiftConformance>,
pub is_public: bool,
pub is_final: bool,
pub generic_params: Vec<String>,
}Expand description
A Swift class declaration.
Fields§
§name: StringClass name
superclass: Option<String>Superclass (if any)
fields: Vec<SwiftField>Fields
methods: Vec<SwiftFunc>Methods
conformances: Vec<SwiftConformance>Protocol conformances
is_public: boolWhether public
is_final: boolWhether final
generic_params: Vec<String>Generic parameters
Implementations§
Trait Implementations§
Source§impl Clone for SwiftClassDecl
impl Clone for SwiftClassDecl
Source§fn clone(&self) -> SwiftClassDecl
fn clone(&self) -> SwiftClassDecl
Returns a duplicate of the value. Read more
1.0.0 · 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 SwiftClassDecl
impl Debug for SwiftClassDecl
Source§impl PartialEq for SwiftClassDecl
impl PartialEq for SwiftClassDecl
impl StructuralPartialEq for SwiftClassDecl
Auto Trait Implementations§
impl Freeze for SwiftClassDecl
impl RefUnwindSafe for SwiftClassDecl
impl Send for SwiftClassDecl
impl Sync for SwiftClassDecl
impl Unpin for SwiftClassDecl
impl UnsafeUnpin for SwiftClassDecl
impl UnwindSafe for SwiftClassDecl
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