Struct objc2_media_player::MPMediaType
source · #[repr(transparent)]pub struct MPMediaType(pub NSUInteger);Available on crate feature
MPMediaItem only.Tuple Fields§
§0: NSUIntegerImplementations§
source§impl MPMediaType
impl MPMediaType
pub const Music: Self = _
pub const Podcast: Self = _
pub const AudioBook: Self = _
pub const AudioITunesU: Self = _
pub const AnyAudio: Self = _
pub const Movie: Self = _
pub const TVShow: Self = _
pub const VideoPodcast: Self = _
pub const MusicVideo: Self = _
pub const VideoITunesU: Self = _
pub const HomeVideo: Self = _
pub const AnyVideo: Self = _
pub const Any: Self = _
Trait Implementations§
source§impl Clone for MPMediaType
impl Clone for MPMediaType
source§fn clone(&self) -> MPMediaType
fn clone(&self) -> MPMediaType
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 MPMediaType
impl Debug for MPMediaType
source§impl Encode for MPMediaType
impl Encode for MPMediaType
source§impl Hash for MPMediaType
impl Hash for MPMediaType
source§impl Ord for MPMediaType
impl Ord for MPMediaType
source§fn cmp(&self, other: &MPMediaType) -> Ordering
fn cmp(&self, other: &MPMediaType) -> 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 MPMediaType
impl PartialEq for MPMediaType
source§fn eq(&self, other: &MPMediaType) -> bool
fn eq(&self, other: &MPMediaType) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd for MPMediaType
impl PartialOrd for MPMediaType
source§fn partial_cmp(&self, other: &MPMediaType) -> Option<Ordering>
fn partial_cmp(&self, other: &MPMediaType) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresource§impl RefEncode for MPMediaType
impl RefEncode for MPMediaType
source§const ENCODING_REF: Encoding = _
const ENCODING_REF: Encoding = _
The Objective-C type-encoding for a reference of this type. Read more
impl Copy for MPMediaType
impl Eq for MPMediaType
impl StructuralPartialEq for MPMediaType
Auto Trait Implementations§
impl Freeze for MPMediaType
impl RefUnwindSafe for MPMediaType
impl Send for MPMediaType
impl Sync for MPMediaType
impl Unpin for MPMediaType
impl UnwindSafe for MPMediaType
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> EncodeArgument for Twhere
T: Encode,
impl<T> EncodeArgument for Twhere
T: Encode,
source§const ENCODING_ARGUMENT: Encoding = T::ENCODING
const ENCODING_ARGUMENT: Encoding = T::ENCODING
The Objective-C type-encoding for this type.
source§impl<T> EncodeReturn for Twhere
T: Encode,
impl<T> EncodeReturn for Twhere
T: Encode,
source§const ENCODING_RETURN: Encoding = T::ENCODING
const ENCODING_RETURN: Encoding = T::ENCODING
The Objective-C type-encoding for this type.