#[repr(u8)]pub enum FolderType {
Mixed = 0,
Titles = 1,
Albums = 2,
Artists = 3,
Genres = 4,
Playlists = 5,
Years = 6,
}
Expand description
The folder type associated with a folder item. Defined by AVRCP 1.6.2 section 6.10.2.2.
Variants§
Implementations§
Source§impl FolderType
impl FolderType
pub fn from_primitive(prim: u8) -> Option<Self>
pub const fn into_primitive(self) -> u8
pub fn is_unknown(&self) -> bool
👎Deprecated: Strict enums should not use
is_unknown
Trait Implementations§
Source§impl Clone for FolderType
impl Clone for FolderType
Source§fn clone(&self) -> FolderType
fn clone(&self) -> FolderType
Returns a copy 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 FolderType
impl Debug for FolderType
Source§impl<D: ResourceDialect> Decode<FolderType, D> for FolderType
impl<D: ResourceDialect> Decode<FolderType, D> for FolderType
Source§impl<D: ResourceDialect> Encode<FolderType, D> for FolderType
impl<D: ResourceDialect> Encode<FolderType, D> for FolderType
Source§impl Hash for FolderType
impl Hash for FolderType
Source§impl Ord for FolderType
impl Ord for FolderType
Source§fn cmp(&self, other: &FolderType) -> Ordering
fn cmp(&self, other: &FolderType) -> Ordering
1.21.0 · 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
Source§impl PartialEq for FolderType
impl PartialEq for FolderType
Source§impl PartialOrd for FolderType
impl PartialOrd for FolderType
Source§impl TypeMarker for FolderType
impl TypeMarker for FolderType
Source§type Owned = FolderType
type Owned = FolderType
The owned Rust type which this FIDL type decodes into.
Source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Returns the minimum required alignment of the inline portion of the
encoded object. It must be a (nonzero) power of two.
Source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
Returns the size of the inline portion of the encoded object, including
padding for alignment. Must be a multiple of
inline_align
.Source§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Returns true if the memory layout of
Self::Owned
matches the FIDL wire
format and encoding requires no validation. When true, we can optimize
encoding arrays and vectors of Self::Owned
to a single memcpy. Read moreSource§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
Returns true if the memory layout of
Self::Owned
matches the FIDL wire
format and decoding requires no validation. When true, we can optimize
decoding arrays and vectors of Self::Owned
to a single memcpy.Source§impl ValueTypeMarker for FolderType
impl ValueTypeMarker for FolderType
Source§type Borrowed<'a> = FolderType
type Borrowed<'a> = FolderType
The Rust type to use for encoding. This is a particular
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read moreimpl Copy for FolderType
impl Eq for FolderType
impl StructuralPartialEq for FolderType
Auto Trait Implementations§
impl Freeze for FolderType
impl RefUnwindSafe for FolderType
impl Send for FolderType
impl Sync for FolderType
impl Unpin for FolderType
impl UnwindSafe for FolderType
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)