pub struct LibraryRefOf<const LIBRARY: u8> { /* private fields */ }Expand description
An opaque id into one of the instrument’s libraries — a piano model, a sample.
The id is only meaningful against the library that holds it, so the type names which:
LIBRARY is a Library code, and the aliases below are the spellings to use.
The file carries the reference and nothing else, which is what
ControlKind::Reference tells a caller.
Implementations§
Trait Implementations§
Source§impl<const LIBRARY: u8> Clone for LibraryRefOf<LIBRARY>
impl<const LIBRARY: u8> Clone for LibraryRefOf<LIBRARY>
Source§fn clone(&self) -> LibraryRefOf<LIBRARY>
fn clone(&self) -> LibraryRefOf<LIBRARY>
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 moreimpl<const LIBRARY: u8> Copy for LibraryRefOf<LIBRARY>
Source§impl<const LIBRARY: u8> Debug for LibraryRefOf<LIBRARY>
impl<const LIBRARY: u8> Debug for LibraryRefOf<LIBRARY>
Source§impl<const LIBRARY: u8> Default for LibraryRefOf<LIBRARY>
impl<const LIBRARY: u8> Default for LibraryRefOf<LIBRARY>
Source§fn default() -> LibraryRefOf<LIBRARY>
fn default() -> LibraryRefOf<LIBRARY>
Returns the “default value” for a type. Read more
Source§impl<const LIBRARY: u8> Display for LibraryRefOf<LIBRARY>
impl<const LIBRARY: u8> Display for LibraryRefOf<LIBRARY>
impl<const LIBRARY: u8> Eq for LibraryRefOf<LIBRARY>
Source§impl<const LIBRARY: u8> Hash for LibraryRefOf<LIBRARY>
impl<const LIBRARY: u8> Hash for LibraryRefOf<LIBRARY>
Source§impl<const LIBRARY: u8> Ord for LibraryRefOf<LIBRARY>
impl<const LIBRARY: u8> Ord for LibraryRefOf<LIBRARY>
Source§fn cmp(&self, other: &LibraryRefOf<LIBRARY>) -> Ordering
fn cmp(&self, other: &LibraryRefOf<LIBRARY>) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl<const LIBRARY: u8> Packed for LibraryRefOf<LIBRARY>
impl<const LIBRARY: u8> Packed for LibraryRefOf<LIBRARY>
Source§const MAX_BITS: u32 = 32
const MAX_BITS: u32 = 32
Bits the widest value of this type occupies. Used to check statically that it
fits its slot.
Source§const DECODE_BITS: u32 = u32::BITS
const DECODE_BITS: u32 = u32::BITS
Widest slot this type can decode without losing bits on re-encoding. Read more
Source§const CONTROL: ControlKind
const CONTROL: ControlKind
Which panel control this value is, for a caller building an interface over the
field registry. Read more
Source§type Error = !
type Error = !
Why a bit pattern is not a valid value.
Infallible when every pattern is.Source§impl<const LIBRARY: u8> PartialEq for LibraryRefOf<LIBRARY>
impl<const LIBRARY: u8> PartialEq for LibraryRefOf<LIBRARY>
Source§impl<const LIBRARY: u8> PartialOrd for LibraryRefOf<LIBRARY>
impl<const LIBRARY: u8> PartialOrd for LibraryRefOf<LIBRARY>
impl<const LIBRARY: u8> StructuralPartialEq for LibraryRefOf<LIBRARY>
Auto Trait Implementations§
impl<const LIBRARY: u8> Freeze for LibraryRefOf<LIBRARY>
impl<const LIBRARY: u8> RefUnwindSafe for LibraryRefOf<LIBRARY>
impl<const LIBRARY: u8> Send for LibraryRefOf<LIBRARY>
impl<const LIBRARY: u8> Sync for LibraryRefOf<LIBRARY>
impl<const LIBRARY: u8> Unpin for LibraryRefOf<LIBRARY>
impl<const LIBRARY: u8> UnsafeUnpin for LibraryRefOf<LIBRARY>
impl<const LIBRARY: u8> UnwindSafe for LibraryRefOf<LIBRARY>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.