[−][src]Trait csml_interpreter::data::primitive::Primitive
Required methods
pub fn is_eq(&self, other: &dyn Primitive) -> bool
[src]
pub fn is_cmp(&self, other: &dyn Primitive) -> Option<Ordering>
[src]
pub fn do_add(
&self,
other: &dyn Primitive
) -> Result<Box<dyn Primitive>, String>
[src]
&self,
other: &dyn Primitive
) -> Result<Box<dyn Primitive>, String>
pub fn do_sub(
&self,
other: &dyn Primitive
) -> Result<Box<dyn Primitive>, String>
[src]
&self,
other: &dyn Primitive
) -> Result<Box<dyn Primitive>, String>
pub fn do_div(
&self,
other: &dyn Primitive
) -> Result<Box<dyn Primitive>, String>
[src]
&self,
other: &dyn Primitive
) -> Result<Box<dyn Primitive>, String>
pub fn do_mul(
&self,
other: &dyn Primitive
) -> Result<Box<dyn Primitive>, String>
[src]
&self,
other: &dyn Primitive
) -> Result<Box<dyn Primitive>, String>
pub fn do_rem(
&self,
other: &dyn Primitive
) -> Result<Box<dyn Primitive>, String>
[src]
&self,
other: &dyn Primitive
) -> Result<Box<dyn Primitive>, String>
pub fn as_debug(&self) -> &dyn Debug
[src]
pub fn as_any(&self) -> &dyn Any
[src]
pub fn get_type(&self) -> PrimitiveType
[src]
pub fn as_box_clone(&self) -> Box<dyn Primitive>
[src]
pub fn to_json(&self) -> Value
[src]
pub fn format_mem(&self, content_type: &str, first: bool) -> Value
[src]
pub fn to_string(&self) -> String
[src]
pub fn as_bool(&self) -> bool
[src]
pub fn get_value(&self) -> &dyn Any
[src]
pub fn get_mut_value(&mut self) -> &mut dyn Any
[src]
pub fn to_msg(&self, content_type: String) -> Message
[src]
pub fn do_exec(
&mut self,
name: &str,
args: &HashMap<String, Literal>,
interval: Interval,
content_type: &ContentType
) -> Result<(Literal, Right), ErrorInfo>
[src]
&mut self,
name: &str,
args: &HashMap<String, Literal>,
interval: Interval,
content_type: &ContentType
) -> Result<(Literal, Right), ErrorInfo>
Implementations
impl dyn Primitive
[src]
pub fn exec(
&mut self,
name: &str,
args: &HashMap<String, Literal>,
interval: Interval,
content_type: &ContentType,
mem_update: &mut bool
) -> Result<Literal, ErrorInfo>
[src]
&mut self,
name: &str,
args: &HashMap<String, Literal>,
interval: Interval,
content_type: &ContentType,
mem_update: &mut bool
) -> Result<Literal, ErrorInfo>
Trait Implementations
impl Debug for dyn Primitive
[src]
impl PartialEq<dyn Primitive + 'static> for dyn Primitive
[src]
pub fn eq(&self, other: &Self) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialOrd<dyn Primitive + 'static> for dyn Primitive
[src]
pub fn partial_cmp(&self, other: &Self) -> Option<Ordering>
[src]
#[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]
impl<'typetag> Serialize for dyn Primitive + 'typetag
[src]
impl<'typetag> Serialize for dyn Primitive + Send + 'typetag
[src]
impl<'typetag> Serialize for dyn Primitive + Sync + 'typetag
[src]
impl<'typetag> Serialize for dyn Primitive + Send + Sync + 'typetag
[src]
impl Strictest for dyn Primitive
[src]
Implementors
impl Primitive for PrimitiveArray
[src]
pub fn is_eq(&self, other: &dyn Primitive) -> bool
[src]
pub fn is_cmp(&self, other: &dyn Primitive) -> Option<Ordering>
[src]
pub fn do_add(
&self,
other: &dyn Primitive
) -> Result<Box<dyn Primitive>, String>
[src]
&self,
other: &dyn Primitive
) -> Result<Box<dyn Primitive>, String>
pub fn do_sub(
&self,
other: &dyn Primitive
) -> Result<Box<dyn Primitive>, String>
[src]
&self,
other: &dyn Primitive
) -> Result<Box<dyn Primitive>, String>
pub fn do_div(
&self,
other: &dyn Primitive
) -> Result<Box<dyn Primitive>, String>
[src]
&self,
other: &dyn Primitive
) -> Result<Box<dyn Primitive>, String>
pub fn do_mul(
&self,
other: &dyn Primitive
) -> Result<Box<dyn Primitive>, String>
[src]
&self,
other: &dyn Primitive
) -> Result<Box<dyn Primitive>, String>
pub fn do_rem(
&self,
other: &dyn Primitive
) -> Result<Box<dyn Primitive>, String>
[src]
&self,
other: &dyn Primitive
) -> Result<Box<dyn Primitive>, String>
pub fn as_debug(&self) -> &dyn Debug
[src]
pub fn as_any(&self) -> &dyn Any
[src]
pub fn get_type(&self) -> PrimitiveType
[src]
pub fn as_box_clone(&self) -> Box<dyn Primitive>
[src]
pub fn to_json(&self) -> Value
[src]
pub fn format_mem(&self, _content_type: &str, first: bool) -> Value
[src]
pub fn to_string(&self) -> String
[src]
pub fn as_bool(&self) -> bool
[src]
pub fn get_value(&self) -> &dyn Any
[src]
pub fn get_mut_value(&mut self) -> &mut dyn Any
[src]
pub fn to_msg(&self, content_type: String) -> Message
[src]
pub fn do_exec(
&mut self,
name: &str,
args: &HashMap<String, Literal>,
interval: Interval,
_content_type: &ContentType
) -> Result<(Literal, Right), ErrorInfo>
[src]
&mut self,
name: &str,
args: &HashMap<String, Literal>,
interval: Interval,
_content_type: &ContentType
) -> Result<(Literal, Right), ErrorInfo>
impl Primitive for PrimitiveBoolean
[src]
pub fn do_exec(
&mut self,
name: &str,
args: &HashMap<String, Literal>,
interval: Interval,
_content_type: &ContentType
) -> Result<(Literal, Right), ErrorInfo>
[src]
&mut self,
name: &str,
args: &HashMap<String, Literal>,
interval: Interval,
_content_type: &ContentType
) -> Result<(Literal, Right), ErrorInfo>
pub fn is_eq(&self, other: &dyn Primitive) -> bool
[src]
pub fn is_cmp(&self, other: &dyn Primitive) -> Option<Ordering>
[src]
pub fn do_add(
&self,
other: &dyn Primitive
) -> Result<Box<dyn Primitive>, String>
[src]
&self,
other: &dyn Primitive
) -> Result<Box<dyn Primitive>, String>
pub fn do_sub(
&self,
other: &dyn Primitive
) -> Result<Box<dyn Primitive>, String>
[src]
&self,
other: &dyn Primitive
) -> Result<Box<dyn Primitive>, String>
pub fn do_div(
&self,
other: &dyn Primitive
) -> Result<Box<dyn Primitive>, String>
[src]
&self,
other: &dyn Primitive
) -> Result<Box<dyn Primitive>, String>
pub fn do_mul(
&self,
other: &dyn Primitive
) -> Result<Box<dyn Primitive>, String>
[src]
&self,
other: &dyn Primitive
) -> Result<Box<dyn Primitive>, String>
pub fn do_rem(
&self,
other: &dyn Primitive
) -> Result<Box<dyn Primitive>, String>
[src]
&self,
other: &dyn Primitive
) -> Result<Box<dyn Primitive>, String>
pub fn as_debug(&self) -> &dyn Debug
[src]
pub fn as_any(&self) -> &dyn Any
[src]
pub fn get_type(&self) -> PrimitiveType
[src]
pub fn as_box_clone(&self) -> Box<dyn Primitive>
[src]
pub fn to_json(&self) -> Value
[src]
pub fn format_mem(&self, _content_type: &str, _first: bool) -> Value
[src]
pub fn to_string(&self) -> String
[src]
pub fn as_bool(&self) -> bool
[src]
pub fn get_value(&self) -> &dyn Any
[src]
pub fn get_mut_value(&mut self) -> &mut dyn Any
[src]
pub fn to_msg(&self, _content_type: String) -> Message
[src]
impl Primitive for PrimitiveFloat
[src]
pub fn is_eq(&self, other: &dyn Primitive) -> bool
[src]
pub fn is_cmp(&self, other: &dyn Primitive) -> Option<Ordering>
[src]
pub fn do_add(
&self,
other: &dyn Primitive
) -> Result<Box<dyn Primitive>, String>
[src]
&self,
other: &dyn Primitive
) -> Result<Box<dyn Primitive>, String>
pub fn do_sub(
&self,
other: &dyn Primitive
) -> Result<Box<dyn Primitive>, String>
[src]
&self,
other: &dyn Primitive
) -> Result<Box<dyn Primitive>, String>
pub fn do_div(
&self,
other: &dyn Primitive
) -> Result<Box<dyn Primitive>, String>
[src]
&self,
other: &dyn Primitive
) -> Result<Box<dyn Primitive>, String>
pub fn do_mul(
&self,
other: &dyn Primitive
) -> Result<Box<dyn Primitive>, String>
[src]
&self,
other: &dyn Primitive
) -> Result<Box<dyn Primitive>, String>
pub fn do_rem(
&self,
other: &dyn Primitive
) -> Result<Box<dyn Primitive>, String>
[src]
&self,
other: &dyn Primitive
) -> Result<Box<dyn Primitive>, String>
pub fn as_debug(&self) -> &dyn Debug
[src]
pub fn as_any(&self) -> &dyn Any
[src]
pub fn get_type(&self) -> PrimitiveType
[src]
pub fn as_box_clone(&self) -> Box<dyn Primitive>
[src]
pub fn to_json(&self) -> Value
[src]
pub fn format_mem(&self, _content_type: &str, _first: bool) -> Value
[src]
pub fn to_string(&self) -> String
[src]
pub fn as_bool(&self) -> bool
[src]
pub fn get_value(&self) -> &dyn Any
[src]
pub fn get_mut_value(&mut self) -> &mut dyn Any
[src]
pub fn to_msg(&self, _content_type: String) -> Message
[src]
pub fn do_exec(
&mut self,
name: &str,
args: &HashMap<String, Literal>,
interval: Interval,
_content_type: &ContentType
) -> Result<(Literal, Right), ErrorInfo>
[src]
&mut self,
name: &str,
args: &HashMap<String, Literal>,
interval: Interval,
_content_type: &ContentType
) -> Result<(Literal, Right), ErrorInfo>
impl Primitive for PrimitiveInt
[src]
TRAIT FUNCTIONS
pub fn is_eq(&self, other: &dyn Primitive) -> bool
[src]
pub fn is_cmp(&self, other: &dyn Primitive) -> Option<Ordering>
[src]
pub fn do_add(
&self,
other: &dyn Primitive
) -> Result<Box<dyn Primitive>, String>
[src]
&self,
other: &dyn Primitive
) -> Result<Box<dyn Primitive>, String>
pub fn do_sub(
&self,
other: &dyn Primitive
) -> Result<Box<dyn Primitive>, String>
[src]
&self,
other: &dyn Primitive
) -> Result<Box<dyn Primitive>, String>
pub fn do_div(
&self,
other: &dyn Primitive
) -> Result<Box<dyn Primitive>, String>
[src]
&self,
other: &dyn Primitive
) -> Result<Box<dyn Primitive>, String>
pub fn do_mul(
&self,
other: &dyn Primitive
) -> Result<Box<dyn Primitive>, String>
[src]
&self,
other: &dyn Primitive
) -> Result<Box<dyn Primitive>, String>
pub fn do_rem(
&self,
other: &dyn Primitive
) -> Result<Box<dyn Primitive>, String>
[src]
&self,
other: &dyn Primitive
) -> Result<Box<dyn Primitive>, String>
pub fn as_debug(&self) -> &dyn Debug
[src]
pub fn as_any(&self) -> &dyn Any
[src]
pub fn get_type(&self) -> PrimitiveType
[src]
pub fn as_box_clone(&self) -> Box<dyn Primitive>
[src]
pub fn to_json(&self) -> Value
[src]
pub fn format_mem(&self, _content_type: &str, _first: bool) -> Value
[src]
pub fn to_string(&self) -> String
[src]
pub fn as_bool(&self) -> bool
[src]
pub fn get_value(&self) -> &dyn Any
[src]
pub fn get_mut_value(&mut self) -> &mut dyn Any
[src]
pub fn to_msg(&self, _content_type: String) -> Message
[src]
pub fn do_exec(
&mut self,
name: &str,
args: &HashMap<String, Literal>,
interval: Interval,
_content_type: &ContentType
) -> Result<(Literal, Right), ErrorInfo>
[src]
&mut self,
name: &str,
args: &HashMap<String, Literal>,
interval: Interval,
_content_type: &ContentType
) -> Result<(Literal, Right), ErrorInfo>
impl Primitive for PrimitiveNull
[src]
pub fn is_eq(&self, other: &dyn Primitive) -> bool
[src]
pub fn is_cmp(&self, _other: &dyn Primitive) -> Option<Ordering>
[src]
pub fn do_add(
&self,
other: &dyn Primitive
) -> Result<Box<dyn Primitive>, String>
[src]
&self,
other: &dyn Primitive
) -> Result<Box<dyn Primitive>, String>
pub fn do_sub(
&self,
other: &dyn Primitive
) -> Result<Box<dyn Primitive>, String>
[src]
&self,
other: &dyn Primitive
) -> Result<Box<dyn Primitive>, String>
pub fn do_div(
&self,
other: &dyn Primitive
) -> Result<Box<dyn Primitive>, String>
[src]
&self,
other: &dyn Primitive
) -> Result<Box<dyn Primitive>, String>
pub fn do_mul(
&self,
other: &dyn Primitive
) -> Result<Box<dyn Primitive>, String>
[src]
&self,
other: &dyn Primitive
) -> Result<Box<dyn Primitive>, String>
pub fn do_rem(
&self,
other: &dyn Primitive
) -> Result<Box<dyn Primitive>, String>
[src]
&self,
other: &dyn Primitive
) -> Result<Box<dyn Primitive>, String>
pub fn as_debug(&self) -> &dyn Debug
[src]
pub fn as_any(&self) -> &dyn Any
[src]
pub fn get_type(&self) -> PrimitiveType
[src]
pub fn as_box_clone(&self) -> Box<dyn Primitive>
[src]
pub fn to_json(&self) -> Value
[src]
pub fn format_mem(&self, _content_type: &str, _first: bool) -> Value
[src]
pub fn to_string(&self) -> String
[src]
pub fn as_bool(&self) -> bool
[src]
pub fn get_value(&self) -> &dyn Any
[src]
pub fn get_mut_value(&mut self) -> &mut dyn Any
[src]
pub fn to_msg(&self, _content_type: String) -> Message
[src]
pub fn do_exec(
&mut self,
name: &str,
args: &HashMap<String, Literal>,
interval: Interval,
_content_type: &ContentType
) -> Result<(Literal, Right), ErrorInfo>
[src]
&mut self,
name: &str,
args: &HashMap<String, Literal>,
interval: Interval,
_content_type: &ContentType
) -> Result<(Literal, Right), ErrorInfo>
impl Primitive for PrimitiveObject
[src]
pub fn is_eq(&self, other: &dyn Primitive) -> bool
[src]
pub fn is_cmp(&self, _other: &dyn Primitive) -> Option<Ordering>
[src]
pub fn do_add(
&self,
other: &dyn Primitive
) -> Result<Box<dyn Primitive>, String>
[src]
&self,
other: &dyn Primitive
) -> Result<Box<dyn Primitive>, String>
pub fn do_sub(
&self,
other: &dyn Primitive
) -> Result<Box<dyn Primitive>, String>
[src]
&self,
other: &dyn Primitive
) -> Result<Box<dyn Primitive>, String>
pub fn do_div(
&self,
other: &dyn Primitive
) -> Result<Box<dyn Primitive>, String>
[src]
&self,
other: &dyn Primitive
) -> Result<Box<dyn Primitive>, String>
pub fn do_mul(
&self,
other: &dyn Primitive
) -> Result<Box<dyn Primitive>, String>
[src]
&self,
other: &dyn Primitive
) -> Result<Box<dyn Primitive>, String>
pub fn do_rem(
&self,
other: &dyn Primitive
) -> Result<Box<dyn Primitive>, String>
[src]
&self,
other: &dyn Primitive
) -> Result<Box<dyn Primitive>, String>
pub fn as_debug(&self) -> &dyn Debug
[src]
pub fn as_any(&self) -> &dyn Any
[src]
pub fn get_type(&self) -> PrimitiveType
[src]
pub fn as_box_clone(&self) -> Box<dyn Primitive>
[src]
pub fn to_json(&self) -> Value
[src]
pub fn format_mem(&self, content_type: &str, first: bool) -> Value
[src]
pub fn to_string(&self) -> String
[src]
pub fn as_bool(&self) -> bool
[src]
pub fn get_value(&self) -> &dyn Any
[src]
pub fn get_mut_value(&mut self) -> &mut dyn Any
[src]
pub fn to_msg(&self, content_type: String) -> Message
[src]
pub fn do_exec(
&mut self,
name: &str,
args: &HashMap<String, Literal>,
interval: Interval,
content_type: &ContentType
) -> Result<(Literal, Right), ErrorInfo>
[src]
&mut self,
name: &str,
args: &HashMap<String, Literal>,
interval: Interval,
content_type: &ContentType
) -> Result<(Literal, Right), ErrorInfo>
impl Primitive for PrimitiveString
[src]
pub fn is_eq(&self, other: &dyn Primitive) -> bool
[src]
pub fn is_cmp(&self, other: &dyn Primitive) -> Option<Ordering>
[src]
pub fn do_add(
&self,
other: &dyn Primitive
) -> Result<Box<dyn Primitive>, String>
[src]
&self,
other: &dyn Primitive
) -> Result<Box<dyn Primitive>, String>
pub fn do_sub(
&self,
other: &dyn Primitive
) -> Result<Box<dyn Primitive>, String>
[src]
&self,
other: &dyn Primitive
) -> Result<Box<dyn Primitive>, String>
pub fn do_div(
&self,
other: &dyn Primitive
) -> Result<Box<dyn Primitive>, String>
[src]
&self,
other: &dyn Primitive
) -> Result<Box<dyn Primitive>, String>
pub fn do_mul(
&self,
other: &dyn Primitive
) -> Result<Box<dyn Primitive>, String>
[src]
&self,
other: &dyn Primitive
) -> Result<Box<dyn Primitive>, String>
pub fn do_rem(
&self,
other: &dyn Primitive
) -> Result<Box<dyn Primitive>, String>
[src]
&self,
other: &dyn Primitive
) -> Result<Box<dyn Primitive>, String>
pub fn as_debug(&self) -> &dyn Debug
[src]
pub fn as_any(&self) -> &dyn Any
[src]
pub fn get_type(&self) -> PrimitiveType
[src]
pub fn as_box_clone(&self) -> Box<dyn Primitive>
[src]
pub fn to_json(&self) -> Value
[src]
pub fn format_mem(&self, _content_type: &str, _first: bool) -> Value
[src]
pub fn to_string(&self) -> String
[src]
pub fn as_bool(&self) -> bool
[src]
pub fn get_value(&self) -> &dyn Any
[src]
pub fn get_mut_value(&mut self) -> &mut dyn Any
[src]
pub fn to_msg(&self, _content_type: String) -> Message
[src]
pub fn do_exec(
&mut self,
name: &str,
args: &HashMap<String, Literal>,
interval: Interval,
_content_type: &ContentType
) -> Result<(Literal, Right), ErrorInfo>
[src]
&mut self,
name: &str,
args: &HashMap<String, Literal>,
interval: Interval,
_content_type: &ContentType
) -> Result<(Literal, Right), ErrorInfo>