pub struct SwiftField {
pub name: String,
pub ty: SwiftType,
pub mutable: bool,
pub is_public: bool,
pub default: Option<SwiftExpr>,
}Expand description
A field in a Swift struct or class.
Fields§
§name: StringField name
ty: SwiftTypeField type
mutable: boolWhether the field is var (mutable) vs let (immutable)
is_public: boolWhether the field is public
default: Option<SwiftExpr>Default value expression
Implementations§
Trait Implementations§
Source§impl Clone for SwiftField
impl Clone for SwiftField
Source§fn clone(&self) -> SwiftField
fn clone(&self) -> SwiftField
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 SwiftField
impl Debug for SwiftField
Source§impl PartialEq for SwiftField
impl PartialEq for SwiftField
impl StructuralPartialEq for SwiftField
Auto Trait Implementations§
impl Freeze for SwiftField
impl RefUnwindSafe for SwiftField
impl Send for SwiftField
impl Sync for SwiftField
impl Unpin for SwiftField
impl UnsafeUnpin for SwiftField
impl UnwindSafe for SwiftField
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