[−][src]Enum purezen::message::element::Element
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(&self) -> 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
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
ⓘImportant traits for &'_ mut Ifn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T> Same for T
[src]
type Output = T
Should always be Self