pub struct Sum<A, B>(pub A, pub B);
Expand description
Represents a sum of two types.
Tuple Fields§
§0: A
§1: B
Trait Implementations§
Source§impl<A: Attributes, B: Attributes> Attributes for Sum<A, B>
impl<A: Attributes, B: Attributes> Attributes for Sum<A, B>
Source§fn write_attributes<'a, 't, W: Write>(
self,
w: &mut TagOpening<'a, 't, W>,
) -> Result
fn write_attributes<'a, 't, W: Write>( self, w: &mut TagOpening<'a, 't, W>, ) -> Result
Writes the attributes to
w
. Read moreAuto Trait Implementations§
impl<A, B> Freeze for Sum<A, B>
impl<A, B> RefUnwindSafe for Sum<A, B>where
A: RefUnwindSafe,
B: RefUnwindSafe,
impl<A, B> Send for Sum<A, B>
impl<A, B> Sync for Sum<A, B>
impl<A, B> Unpin for Sum<A, B>
impl<A, B> UnwindSafe for Sum<A, B>where
A: UnwindSafe,
B: UnwindSafe,
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