Enum rosc::OscType[][src]

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

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(OscTime)
Long(i64)
Double(f64)
Char(char)
Color(OscColor)
Bool(bool)
Array(OscArray)
Nil
Inf

Implementations

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<OscTime>[src]

Trait Implementations

impl Clone for OscType[src]

fn clone(&self) -> OscType[src]

Returns a copy of the value. Read more

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

Performs copy-assignment from source. Read more

impl Debug for OscType[src]

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

Formats the value using the given formatter. Read more

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

fn from(string: &'a str) -> Self[src]

Performs the conversion.

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

fn from(time: (u32, u32)) -> Self[src]

Performs the conversion.

impl From<OscArray> for OscType[src]

fn from(v: OscArray) -> Self[src]

Performs the conversion.

impl From<OscColor> for OscType[src]

fn from(v: OscColor) -> Self[src]

Performs the conversion.

impl From<OscMidiMessage> for OscType[src]

fn from(v: OscMidiMessage) -> Self[src]

Performs the conversion.

impl From<String> for OscType[src]

fn from(v: String) -> Self[src]

Performs the conversion.

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

fn from(v: Vec<u8>) -> Self[src]

Performs the conversion.

impl From<bool> for OscType[src]

fn from(v: bool) -> Self[src]

Performs the conversion.

impl From<char> for OscType[src]

fn from(v: char) -> Self[src]

Performs the conversion.

impl From<f32> for OscType[src]

fn from(v: f32) -> Self[src]

Performs the conversion.

impl From<f64> for OscType[src]

fn from(v: f64) -> Self[src]

Performs the conversion.

impl From<i32> for OscType[src]

fn from(v: i32) -> Self[src]

Performs the conversion.

impl From<i64> for OscType[src]

fn from(v: i64) -> Self[src]

Performs the conversion.

impl PartialEq<OscType> for OscType[src]

fn eq(&self, other: &OscType) -> bool[src]

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, other: &OscType) -> bool[src]

This method tests for !=.

impl TryFrom<SystemTime> for OscType[src]

type Error = OscTimeError

The type returned in the event of a conversion error.

fn try_from(time: SystemTime) -> Result<OscType, OscTimeError>[src]

Performs the conversion.

impl StructuralPartialEq for OscType[src]

Auto Trait Implementations

impl RefUnwindSafe for OscType

impl Send for OscType

impl Sync for OscType

impl Unpin for OscType

impl UnwindSafe for OscType

Blanket Implementations

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

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

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

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

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

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

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

pub fn from(t: T) -> T[src]

Performs the conversion.

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

pub fn into(self) -> U[src]

Performs the conversion.

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

type Owned = T

The resulting type after obtaining ownership.

pub fn to_owned(&self) -> T[src]

Creates owned data from borrowed data, usually by cloning. Read more

pub fn clone_into(&self, target: &mut T)[src]

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

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

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.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

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.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.