Enum entity::Primitive [−][src]
Represents a primitive value
Variants
Bool(bool)
Char(char)
Number(Number)
Implementations
impl Primitive
[src]
pub fn is_type(&self, type: PrimitiveType) -> bool
[src]
Returns true if this value is of the specified type
pub fn to_type(&self) -> PrimitiveType
[src]
Returns the type of this value
pub fn has_same_type(&self, other: &Primitive) -> bool
[src]
Returns true if this value and the other value are of the same type
Trait Implementations
impl Clone for Primitive
[src]
impl Copy for Primitive
[src]
impl Debug for Primitive
[src]
impl Eq for Primitive
[src]
Value is considered equal, ignoring the fact that NaN != NaN for floats
impl<'a> From<&'a Primitive> for PrimitiveType
[src]
impl From<()> for Primitive
[src]
impl From<Primitive> for PrimitiveType
[src]
impl From<Primitive> for Value
[src]
impl From<bool> for Primitive
[src]
impl From<char> for Primitive
[src]
impl From<f32> for Primitive
[src]
impl From<f64> for Primitive
[src]
impl From<i128> for Primitive
[src]
impl From<i16> for Primitive
[src]
impl From<i32> for Primitive
[src]
impl From<i64> for Primitive
[src]
impl From<i8> for Primitive
[src]
impl From<isize> for Primitive
[src]
impl From<u128> for Primitive
[src]
impl From<u16> for Primitive
[src]
impl From<u32> for Primitive
[src]
impl From<u64> for Primitive
[src]
impl From<u8> for Primitive
[src]
impl From<usize> for Primitive
[src]
impl Hash for Primitive
[src]
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<Primitive> for Primitive
[src]
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]
#[must_use]
pub fn ne(&self, other: &Rhs) -> boolimpl PartialOrd<Primitive> for Primitive
[src]
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 lt(&self, other: &Rhs) -> bool#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn le(&self, other: &Rhs) -> bool#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn gt(&self, other: &Rhs) -> bool#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn ge(&self, other: &Rhs) -> boolimpl PrimitiveLike for Primitive
[src]
fn into_primitive(self) -> Primitive
[src]
fn try_from_primitive(primitive: Primitive) -> Result<Self, Primitive>
[src]
impl TryFrom<Value> for Primitive
[src]
Auto Trait Implementations
impl RefUnwindSafe for Primitive
impl Send for Primitive
impl Sync for Primitive
impl Unpin for Primitive
impl UnwindSafe for Primitive
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>,