pub enum IrBundleElement {
Message(IrValue),
Bundle(IrBundle),
}Expand description
An element that can be contained within an OSC bundle. Can be either a message (represented as an IrValue) or a nested bundle. Available with OSC 1.0+ support.
Variants§
Implementations§
Source§impl IrBundleElement
impl IrBundleElement
Sourcepub fn is_message(&self) -> bool
pub fn is_message(&self) -> bool
Returns true if this element is a message
Sourcepub fn as_message(&self) -> Option<&IrValue>
pub fn as_message(&self) -> Option<&IrValue>
Returns a reference to the message if this element is a message
Trait Implementations§
Source§impl Clone for IrBundleElement
impl Clone for IrBundleElement
Source§fn clone(&self) -> IrBundleElement
fn clone(&self) -> IrBundleElement
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for IrBundleElement
impl Debug for IrBundleElement
Source§impl From<IrBundle> for IrBundleElement
Available on crate feature osc10 only.
impl From<IrBundle> for IrBundleElement
Available on crate feature
osc10 only.Source§impl From<IrValue> for IrBundleElement
Available on crate feature osc10 only.
impl From<IrValue> for IrBundleElement
Available on crate feature
osc10 only.Source§impl PartialEq for IrBundleElement
impl PartialEq for IrBundleElement
impl StructuralPartialEq for IrBundleElement
Auto Trait Implementations§
impl Freeze for IrBundleElement
impl RefUnwindSafe for IrBundleElement
impl Send for IrBundleElement
impl Sync for IrBundleElement
impl Unpin for IrBundleElement
impl UnwindSafe for IrBundleElement
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more