pub enum Void {}Expand description
The Void type, a.k.a. θ, is used to represent the end of an anonymous sum type,
or an empty sum type.
Void is commonly used as the Tail of a Either type, to terminate the list.
When used on its own, it represents an empty sum type, which can never be constructed.
Void is functionally the same as the
never type, !,
or otherwise
Infallible.
However, we define a separate Void type, to make it more clear that it is
specifically used for terminating a sum type.
Read more about sum types in Either.
Trait Implementations§
Source§impl<Source, Target> FieldsExtractor<Source, Target> for θ
impl<Source, Target> FieldsExtractor<Source, Target> for θ
Source§impl FinalizeExtract for θ
impl FinalizeExtract for θ
fn finalize_extract<T>(self) -> T
impl Eq for θ
impl StructuralPartialEq for θ
Auto Trait Implementations§
impl Freeze for θ
impl RefUnwindSafe for θ
impl Send for θ
impl Sync for θ
impl Unpin for θ
impl UnwindSafe for θ
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