pub enum SemanticValue {
Bool(bool),
Integer(i64),
Unsigned(u64),
Rational(CanonicalRational),
Text(String),
Integers(Vec<i64>),
}Variants§
Implementations§
Source§impl SemanticValue
impl SemanticValue
pub const fn kind(&self) -> AttributeValueKind
pub fn validate(&self, context: &str) -> Result<(), VNextError>
Trait Implementations§
Source§impl Clone for SemanticValue
impl Clone for SemanticValue
Source§fn clone(&self) -> SemanticValue
fn clone(&self) -> SemanticValue
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 SemanticValue
impl Debug for SemanticValue
Source§impl<'de> Deserialize<'de> for SemanticValue
impl<'de> Deserialize<'de> for SemanticValue
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for SemanticValue
Source§impl PartialEq for SemanticValue
impl PartialEq for SemanticValue
Source§impl Serialize for SemanticValue
impl Serialize for SemanticValue
impl StructuralPartialEq for SemanticValue
Auto Trait Implementations§
impl Freeze for SemanticValue
impl RefUnwindSafe for SemanticValue
impl Send for SemanticValue
impl Sync for SemanticValue
impl Unpin for SemanticValue
impl UnsafeUnpin for SemanticValue
impl UnwindSafe for SemanticValue
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