o3 0.62.0

shared-nothing primitives
Documentation
mod error;

pub use error::Error;

/// Supplies the empty owner accepted by `Shared::new` and `Shared::clear`.
pub trait Empty: Sized {
    const EMPTY: Self;
}

impl<O> Empty for Option<O> {
    const EMPTY: Self = None;
}

/// Completes consumption according to the actual backing's empty-owner policy.
pub trait End: Sized {
    const EMPTY: Option<Self>;
}

impl<O: Empty> End for O {
    const EMPTY: Option<Self> = Some(O::EMPTY);
}