pub struct PlayableShape {
pub symbol: Symbol,
pub fields: Vec<String>,
}Expand description
Shape record describing the playable protocol surface.
Fields§
§symbol: SymbolSymbol naming the shape.
fields: Vec<String>Field/method names the shape exposes.
Implementations§
Source§impl PlayableShape
impl PlayableShape
Sourcepub fn music_object() -> Self
pub fn music_object() -> Self
Returns the canonical shape for music playable objects.
Sourcepub fn from_expr(expr: &Expr) -> Result<Self>
pub fn from_expr(expr: &Expr) -> Result<Self>
Decodes a shape from an expression map produced by PlayableShape::to_expr.
Trait Implementations§
Source§impl Clone for PlayableShape
impl Clone for PlayableShape
Source§fn clone(&self) -> PlayableShape
fn clone(&self) -> PlayableShape
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PlayableShape
impl Debug for PlayableShape
impl Eq for PlayableShape
Source§impl PartialEq for PlayableShape
impl PartialEq for PlayableShape
impl StructuralPartialEq for PlayableShape
Auto Trait Implementations§
impl Freeze for PlayableShape
impl RefUnwindSafe for PlayableShape
impl Send for PlayableShape
impl Sync for PlayableShape
impl Unpin for PlayableShape
impl UnsafeUnpin for PlayableShape
impl UnwindSafe for PlayableShape
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