pub struct UnionCase {
pub name: String,
pub documentation: Option<Documentation>,
pub payload: Option<TypeExpr>,
}Expand description
One union case with zero or one payload.
Fields§
§name: StringCase name.
documentation: Option<Documentation>Optional case documentation.
payload: Option<TypeExpr>Optional payload type.
Trait Implementations§
impl Eq for UnionCase
impl StructuralPartialEq for UnionCase
Auto Trait Implementations§
impl Freeze for UnionCase
impl RefUnwindSafe for UnionCase
impl Send for UnionCase
impl Sync for UnionCase
impl Unpin for UnionCase
impl UnsafeUnpin for UnionCase
impl UnwindSafe for UnionCase
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