pub enum ValueStore<T> {
Value(T),
NoValue {
message: String,
},
}Expand description
A single plain value for one property, or a no-value with the reason.
This is the unit kept in IpIntelligenceDataBase’s plain typed stores. It
mirrors the two states of an AspectPropertyValue: a present value, or a
no-value message explaining why the engine determined nothing.
Variants§
Trait Implementations§
Source§impl<T: Clone> Clone for ValueStore<T>
impl<T: Clone> Clone for ValueStore<T>
Source§fn clone(&self) -> ValueStore<T>
fn clone(&self) -> ValueStore<T>
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<T: Debug> Debug for ValueStore<T>
impl<T: Debug> Debug for ValueStore<T>
Source§impl<T: PartialEq> PartialEq for ValueStore<T>
impl<T: PartialEq> PartialEq for ValueStore<T>
impl<T: PartialEq> StructuralPartialEq for ValueStore<T>
Auto Trait Implementations§
impl<T> Freeze for ValueStore<T>where
T: Freeze,
impl<T> RefUnwindSafe for ValueStore<T>where
T: RefUnwindSafe,
impl<T> Send for ValueStore<T>where
T: Send,
impl<T> Sync for ValueStore<T>where
T: Sync,
impl<T> Unpin for ValueStore<T>where
T: Unpin,
impl<T> UnsafeUnpin for ValueStore<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for ValueStore<T>where
T: UnwindSafe,
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