#[repr(u8)]pub enum EpisodeType {
Normal = 0,
SP = 1,
OP = 2,
ED = 3,
}Expand description
剧集类型枚举
用于区分不同类型的剧集内容,底层使用u8存储以节省空间
Variants§
Normal = 0
普通剧集(正片内容)
SP = 1
特别篇(Special Episode,额外内容)
OP = 2
片头曲(Opening Theme,片头动画)
ED = 3
片尾曲(Ending Theme,片尾动画)
Trait Implementations§
Source§impl Clone for EpisodeType
impl Clone for EpisodeType
Source§fn clone(&self) -> EpisodeType
fn clone(&self) -> EpisodeType
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 EpisodeType
impl Debug for EpisodeType
Source§impl<'de> Deserialize<'de> for EpisodeType
impl<'de> Deserialize<'de> for EpisodeType
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for EpisodeType
impl PartialEq for EpisodeType
Source§impl Serialize for EpisodeType
impl Serialize for EpisodeType
impl StructuralPartialEq for EpisodeType
Auto Trait Implementations§
impl Freeze for EpisodeType
impl RefUnwindSafe for EpisodeType
impl Send for EpisodeType
impl Sync for EpisodeType
impl Unpin for EpisodeType
impl UnwindSafe for EpisodeType
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