[−][src]Enum entity::PrimitiveValue
Represents a primitive value
Variants
Bool(bool)
Char(char)
Number(Number)
Implementations
impl PrimitiveValue
[src]
pub fn is_type(&self, r#type: PrimitiveValueType) -> bool
[src]
Returns true if this value is of the specified type
pub fn to_type(&self) -> PrimitiveValueType
[src]
Returns the type of this value
pub fn has_same_type(&self, other: &PrimitiveValue) -> bool
[src]
Returns true if this value and the other value are of the same type
Trait Implementations
impl Clone for PrimitiveValue
[src]
pub fn clone(&self) -> PrimitiveValue
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for PrimitiveValue
[src]
impl Debug for PrimitiveValue
[src]
impl Eq for PrimitiveValue
[src]
Value is considered equal, ignoring the fact that NaN != NaN for floats
impl<'a> From<&'a PrimitiveValue> for PrimitiveValueType
[src]
pub fn from(v: &'a PrimitiveValue) -> Self
[src]
impl From<()> for PrimitiveValue
[src]
pub fn from(original: ()) -> PrimitiveValue
[src]
impl From<Number> for PrimitiveValue
[src]
pub fn from(original: Number) -> PrimitiveValue
[src]
impl From<PrimitiveValue> for Value
[src]
pub fn from(v: PrimitiveValue) -> Self
[src]
Converts a primitive value into a value without any allocation
impl From<PrimitiveValue> for PrimitiveValueType
[src]
pub fn from(v: PrimitiveValue) -> Self
[src]
impl From<bool> for PrimitiveValue
[src]
pub fn from(original: bool) -> PrimitiveValue
[src]
impl From<char> for PrimitiveValue
[src]
pub fn from(original: char) -> PrimitiveValue
[src]
impl From<f32> for PrimitiveValue
[src]
impl From<f64> for PrimitiveValue
[src]
impl From<i128> for PrimitiveValue
[src]
impl From<i16> for PrimitiveValue
[src]
impl From<i32> for PrimitiveValue
[src]
impl From<i64> for PrimitiveValue
[src]
impl From<i8> for PrimitiveValue
[src]
impl From<isize> for PrimitiveValue
[src]
impl From<u128> for PrimitiveValue
[src]
impl From<u16> for PrimitiveValue
[src]
impl From<u32> for PrimitiveValue
[src]
impl From<u64> for PrimitiveValue
[src]
impl From<u8> for PrimitiveValue
[src]
impl From<usize> for PrimitiveValue
[src]
impl Hash for PrimitiveValue
[src]
pub fn hash<H: Hasher>(&self, state: &mut H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<PrimitiveValue> for PrimitiveValue
[src]
pub fn eq(&self, other: &Self) -> bool
[src]
Compares two primitive values of same type for equality, otherwise returns false
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialOrd<PrimitiveValue> for PrimitiveValue
[src]
pub fn partial_cmp(&self, other: &Self) -> Option<Ordering>
[src]
Compares same variants of same type for ordering, otherwise returns none
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
Auto Trait Implementations
impl RefUnwindSafe for PrimitiveValue
[src]
impl Send for PrimitiveValue
[src]
impl Sync for PrimitiveValue
[src]
impl Unpin for PrimitiveValue
[src]
impl UnwindSafe for PrimitiveValue
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DynClone for T where
T: Clone,
[src]
T: Clone,
pub fn __clone_box(&self, Private) -> *mut ()
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,