pub struct SwiftStructDecl {
pub name: String,
pub fields: Vec<SwiftField>,
pub methods: Vec<SwiftFunc>,
pub conformances: Vec<SwiftConformance>,
pub is_public: bool,
pub generic_params: Vec<String>,
}Expand description
A Swift struct declaration.
Fields§
§name: StringStruct name
fields: Vec<SwiftField>Fields (stored properties)
methods: Vec<SwiftFunc>Methods
conformances: Vec<SwiftConformance>Protocol conformances
is_public: boolWhether public
generic_params: Vec<String>Generic parameters
Implementations§
Trait Implementations§
Source§impl Clone for SwiftStructDecl
impl Clone for SwiftStructDecl
Source§fn clone(&self) -> SwiftStructDecl
fn clone(&self) -> SwiftStructDecl
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 SwiftStructDecl
impl Debug for SwiftStructDecl
Source§impl PartialEq for SwiftStructDecl
impl PartialEq for SwiftStructDecl
impl StructuralPartialEq for SwiftStructDecl
Auto Trait Implementations§
impl Freeze for SwiftStructDecl
impl RefUnwindSafe for SwiftStructDecl
impl Send for SwiftStructDecl
impl Sync for SwiftStructDecl
impl Unpin for SwiftStructDecl
impl UnsafeUnpin for SwiftStructDecl
impl UnwindSafe for SwiftStructDecl
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