Enum brassfibre::prelude::Scalar
[−]
[src]
pub enum Scalar { i64(i64), i32(i32), usize(usize), f64(f64), bool(bool), String(String), }
///////////////////////////////////////////////////////////////////////////// Scalar /////////////////////////////////////////////////////////////////////////////
Variants
i64(i64)
i32(i32)
usize(usize)
f64(f64)
bool(bool)
String(String)
Methods
impl Scalar
[src]
fn dtype(&self) -> String
fn is_i64(&self) -> bool
fn is_i32(&self) -> bool
fn is_usize(&self) -> bool
fn is_f64(&self) -> bool
fn is_bool(&self) -> bool
fn is_str(&self) -> bool
fn as_i64(&self) -> i64
fn as_i32(&self) -> i32
fn as_usize(&self) -> usize
fn as_f64(&self) -> f64
fn as_bool(&self) -> bool
fn as_str(&self) -> String
Trait Implementations
impl From<i64> for Scalar
[src]
impl From<i32> for Scalar
[src]
impl From<usize> for Scalar
[src]
impl From<f64> for Scalar
[src]
impl From<bool> for Scalar
[src]
impl From<String> for Scalar
[src]
impl<'a> From<&'a str> for Scalar
[src]
impl Decodable for Scalar
[src]
fn decode<__D: Decoder>(__arg_0: &mut __D) -> Result<Scalar, __D::Error>
Deserialize a value using a Decoder
.
impl Encodable for Scalar
[src]
fn encode<__S: Encoder>(&self, __arg_0: &mut __S) -> Result<(), __S::Error>
Serialize a value using an Encoder
.
impl Clone for Scalar
[src]
fn clone(&self) -> Scalar
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl PartialEq for Scalar
[src]
fn eq(&self, __arg_0: &Scalar) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Scalar) -> bool
This method tests for !=
.