[][src]Enum purezen::message::element::Element

pub enum Element {
    Anything,
    Bang,
    Float(f32),
    List(),
    Symbol(Symbol),
}

Message Elements: Components of a Pure Data message

Variants

Anything

Any value (placeholder for uninitialized values)

Bang

bang: Typically used to trigger an object to perform an action.

Float(f32)

float: Single-precision floating point value

List()

list: Lists of other elements

Symbol(Symbol)

symbol: Symbols i.e. Pure Data keywords (e.g. float, list, symbol)

Methods

impl Element[src]

pub fn get_type(&self) -> Type[src]

Get the element type for this element

pub fn get_float(&self) -> Option<f32>[src]

Obtain the numeric constant value for this element

pub fn get_list(&self) -> Option<&[Element]>[src]

Get the slice containing an inner list of elements

pub fn get_symbol(&self) -> Option<&str>[src]

Obtain the symbol value for this element

pub fn is_anything(&self) -> bool[src]

Is this element an anything placeholder value?

pub fn is_bang(&self) -> bool[src]

Is this element a bang?

pub fn is_float(&self) -> bool[src]

Is this element a float?

pub fn is_list(&self) -> bool[src]

Is this element a list?

pub fn is_symbol(&self) -> bool[src]

Is this element a symbol?

pub fn is_symbol_str(&self, test: &str) -> bool[src]

Is this element a symbol which matches the given string?

pub fn set_anything(&mut self)[src]

Set the anything value on this element

pub fn set_bang(&mut self)[src]

Set the bang value on this element

pub fn set_float(&mut self, new_value: f32)[src]

Set the floating point value of this element

pub fn set_list(&mut self)[src]

Set this value to a list

pub fn set_symbol(&mut self, new_symbol: &str)[src]

Set the floating point value of this element

Trait Implementations

impl Clone for Element[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq<Element> for Element[src]

impl From<f32> for Element[src]

impl<'a> From<&'a str> for Element[src]

impl Debug for Element[src]

Auto Trait Implementations

impl Send for Element

impl Sync for Element

Blanket Implementations

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T> Same for T[src]

type Output = T

Should always be Self