[][src]Enum rosc_supercollider::OscType

pub enum OscType {
    Int(i32),
    Float(f32),
    String(String),
    Blob(Vec<u8>),
    Time(u32u32),
    Long(i64),
    Double(f64),
    Char(char),
    Color(OscColor),
    Midi(OscMidiMessage),
    Bool(bool),
    Array(OscArray),
    Nil,
    Inf,
}

see OSC Type Tag String: OSC Spec. 1.0 padding: zero bytes (n*4)

Variants

Int(i32)Float(f32)String(String)Blob(Vec<u8>)Time(u32u32)Long(i64)Double(f64)Char(char)Color(OscColor)Midi(OscMidiMessage)Bool(bool)Array(OscArray)NilInf

Methods

impl OscType[src]

pub fn int(self) -> Option<i32>[src]

impl OscType[src]

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

impl OscType[src]

pub fn string(self) -> Option<String>[src]

impl OscType[src]

pub fn blob(self) -> Option<Vec<u8>>[src]

impl OscType[src]

pub fn array(self) -> Option<OscArray>[src]

impl OscType[src]

pub fn long(self) -> Option<i64>[src]

impl OscType[src]

pub fn double(self) -> Option<f64>[src]

impl OscType[src]

pub fn char(self) -> Option<char>[src]

impl OscType[src]

pub fn color(self) -> Option<OscColor>[src]

impl OscType[src]

impl OscType[src]

pub fn bool(self) -> Option<bool>[src]

impl OscType[src]

pub fn time(self) -> Option<(u32, u32)>[src]

Trait Implementations

impl From<i32> for OscType[src]

impl From<f32> for OscType[src]

impl From<String> for OscType[src]

impl From<Vec<u8>> for OscType[src]

impl From<OscArray> for OscType[src]

impl From<i64> for OscType[src]

impl From<f64> for OscType[src]

impl From<char> for OscType[src]

impl From<OscColor> for OscType[src]

impl From<OscMidiMessage> for OscType[src]

impl From<bool> for OscType[src]

impl From<(u32, u32)> for OscType[src]

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

impl PartialEq<OscType> for OscType[src]

impl Clone for OscType[src]

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

Performs copy-assignment from source. Read more

impl Debug for OscType[src]

Auto Trait Implementations

impl Send for OscType

impl Unpin for OscType

impl Sync for OscType

impl UnwindSafe for OscType

impl RefUnwindSafe for OscType

Blanket Implementations

impl<T> From<T> for T[src]

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

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

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.

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

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

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