#[non_exhaustive]pub struct ResolvedQuantitySet {
pub source: Source,
pub set: QuantitySet,
pub shadowed: Option<Box<ResolvedQuantitySet>>,
}Expand description
A quantity set that applies to an object, with its provenance.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.source: SourceWhere it came from.
set: QuantitySetThe set itself.
shadowed: Option<Box<ResolvedQuantitySet>>A same-named set this one overrode, if any.
Populated when an occurrence set shadows a type set, so a caller can explain why a quantity differs from the type default.
Trait Implementations§
Source§impl Clone for ResolvedQuantitySet
impl Clone for ResolvedQuantitySet
Source§fn clone(&self) -> ResolvedQuantitySet
fn clone(&self) -> ResolvedQuantitySet
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 ResolvedQuantitySet
impl Debug for ResolvedQuantitySet
Source§impl PartialEq for ResolvedQuantitySet
impl PartialEq for ResolvedQuantitySet
impl StructuralPartialEq for ResolvedQuantitySet
Auto Trait Implementations§
impl Freeze for ResolvedQuantitySet
impl RefUnwindSafe for ResolvedQuantitySet
impl Send for ResolvedQuantitySet
impl Sync for ResolvedQuantitySet
impl Unpin for ResolvedQuantitySet
impl UnsafeUnpin for ResolvedQuantitySet
impl UnwindSafe for ResolvedQuantitySet
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