pub struct SwiftEnumCase {
pub name: String,
pub associated: Vec<SwiftType>,
pub raw_value: Option<SwiftLit>,
}Expand description
An enum case declaration.
Fields§
§name: StringCase name
associated: Vec<SwiftType>Associated value types (empty for bare cases)
raw_value: Option<SwiftLit>Raw value (for raw-value enums)
Implementations§
Trait Implementations§
Source§impl Clone for SwiftEnumCase
impl Clone for SwiftEnumCase
Source§fn clone(&self) -> SwiftEnumCase
fn clone(&self) -> SwiftEnumCase
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 SwiftEnumCase
impl Debug for SwiftEnumCase
Source§impl PartialEq for SwiftEnumCase
impl PartialEq for SwiftEnumCase
impl StructuralPartialEq for SwiftEnumCase
Auto Trait Implementations§
impl Freeze for SwiftEnumCase
impl RefUnwindSafe for SwiftEnumCase
impl Send for SwiftEnumCase
impl Sync for SwiftEnumCase
impl Unpin for SwiftEnumCase
impl UnsafeUnpin for SwiftEnumCase
impl UnwindSafe for SwiftEnumCase
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