[][src]Trait csml_interpreter::data::primitive::Primitive

pub trait Primitive: Send + Serialize + Deserialize {
    pub fn is_eq(&self, other: &dyn Primitive) -> bool;
pub fn is_cmp(&self, other: &dyn Primitive) -> Option<Ordering>;
pub fn do_add(
        &self,
        other: &dyn Primitive
    ) -> Result<Box<dyn Primitive>, String>;
pub fn do_sub(
        &self,
        other: &dyn Primitive
    ) -> Result<Box<dyn Primitive>, String>;
pub fn do_div(
        &self,
        other: &dyn Primitive
    ) -> Result<Box<dyn Primitive>, String>;
pub fn do_mul(
        &self,
        other: &dyn Primitive
    ) -> Result<Box<dyn Primitive>, String>;
pub fn do_rem(
        &self,
        other: &dyn Primitive
    ) -> Result<Box<dyn Primitive>, String>;
pub fn as_debug(&self) -> &dyn Debug;
pub fn as_any(&self) -> &dyn Any;
pub fn get_type(&self) -> PrimitiveType;
pub fn as_box_clone(&self) -> Box<dyn Primitive>;
pub fn to_json(&self) -> Value;
pub fn format_mem(&self, content_type: &str, first: bool) -> Value;
pub fn to_string(&self) -> String;
pub fn as_bool(&self) -> bool;
pub fn get_value(&self) -> &dyn Any;
pub fn get_mut_value(&mut self) -> &mut dyn Any;
pub fn to_msg(&self, content_type: String) -> Message;
pub fn do_exec(
        &mut self,
        name: &str,
        args: &HashMap<String, Literal>,
        interval: Interval,
        content_type: &ContentType
    ) -> Result<(Literal, Right), ErrorInfo>; }

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]

pub fn do_sub(
    &self,
    other: &dyn Primitive
) -> Result<Box<dyn Primitive>, String>
[src]

pub fn do_div(
    &self,
    other: &dyn Primitive
) -> Result<Box<dyn Primitive>, String>
[src]

pub fn do_mul(
    &self,
    other: &dyn Primitive
) -> Result<Box<dyn Primitive>, String>
[src]

pub fn do_rem(
    &self,
    other: &dyn Primitive
) -> Result<Box<dyn Primitive>, String>
[src]

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]

Loading content...

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]

Trait Implementations

impl Debug for dyn Primitive[src]

impl PartialEq<dyn Primitive + 'static> for dyn Primitive[src]

impl PartialOrd<dyn Primitive + 'static> for dyn Primitive[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]

type Object = dyn Primitive + Send

Implementors

impl Primitive for PrimitiveArray[src]

impl Primitive for PrimitiveBoolean[src]

impl Primitive for PrimitiveFloat[src]

impl Primitive for PrimitiveInt[src]

TRAIT FUNCTIONS

impl Primitive for PrimitiveNull[src]

impl Primitive for PrimitiveObject[src]

impl Primitive for PrimitiveString[src]

Loading content...