pub enum PartitionCargo {
NothingPlanned,
Carried(CarriedTokens),
}Expand description
What one delivery carries.
“This delivery receives no cargo from this expansion” and “this delivery receives a cargo of no tokens” are answers to different questions, and an empty token tree would read exactly like the first.
Variants§
NothingPlanned
The plan declared no member into this delivery.
Carried(CarriedTokens)
The members the plan declared into this delivery, joined in roster order, with the digest of exactly those bytes.
Implementations§
Source§impl PartitionCargo
impl PartitionCargo
Sourcepub const fn tokens(&self) -> Option<&GeneratedTree>
pub const fn tokens(&self) -> Option<&GeneratedTree>
The tokens this delivery carries, where it carries any.
§Nonclaims
It answers with nothing where the plan declared no member into this delivery. That is a stated posture rather than a missing value, and this road never turns “nothing was planned here” into “a cargo of no tokens”.
Trait Implementations§
Source§impl Clone for PartitionCargo
impl Clone for PartitionCargo
Source§fn clone(&self) -> PartitionCargo
fn clone(&self) -> PartitionCargo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PartitionCargo
impl Debug for PartitionCargo
impl Eq for PartitionCargo
Source§impl Hash for PartitionCargo
impl Hash for PartitionCargo
Source§impl PartialEq for PartitionCargo
impl PartialEq for PartitionCargo
impl StructuralPartialEq for PartitionCargo
Auto Trait Implementations§
impl Freeze for PartitionCargo
impl RefUnwindSafe for PartitionCargo
impl Send for PartitionCargo
impl Sync for PartitionCargo
impl Unpin for PartitionCargo
impl UnsafeUnpin for PartitionCargo
impl UnwindSafe for PartitionCargo
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