pub struct Value { /* private fields */ }Expand description
Value
Canonical value descriptor pairing cardinality with one item definition.
Implementations§
Source§impl Value
impl Value
Sourcepub const fn new(cardinality: Cardinality, item: Item) -> Self
pub const fn new(cardinality: Cardinality, item: Item) -> Self
Build one value descriptor from its schema cardinality and item target.
pub const fn cardinality(&self) -> Cardinality
pub const fn item(&self) -> &Item
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Value
impl RefUnwindSafe for Value
impl Send for Value
impl Sync for Value
impl Unpin for Value
impl UnsafeUnpin for Value
impl UnwindSafe for Value
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