pub enum BannerVersion {
Original = 1,
China = 2,
Korea = 3,
Animated = 259,
}Expand description
Known banner versions.
Variants§
Original = 1
Original version with titles in Japanese, English, French, German, Italian and Spanish.
China = 2
Inherits from BannerVersion::Original and adds Chinese.
Korea = 3
Inherits from BannerVersion::China and adds Korean.
Animated = 259
Inherits from BannerVersion::Korea and adds an animated icon.
Implementations§
Source§impl BannerVersion
impl BannerVersion
Sourcepub fn has_chinese(self) -> bool
pub fn has_chinese(self) -> bool
Returns whether this version has a Chinese title.
Sourcepub fn has_korean(self) -> bool
pub fn has_korean(self) -> bool
Returns whether this version has a Korean title.
Sourcepub fn has_animation(self) -> bool
pub fn has_animation(self) -> bool
Returns whether this version has an animated icon.
Sourcepub fn supports_language(self, language: Language) -> bool
pub fn supports_language(self, language: Language) -> bool
Returns whether this version supports the given language.
Returns the banner size of this version.
Trait Implementations§
Source§impl Clone for BannerVersion
impl Clone for BannerVersion
Source§fn clone(&self) -> BannerVersion
fn clone(&self) -> BannerVersion
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 BannerVersion
impl Debug for BannerVersion
Source§impl Default for BannerVersion
impl Default for BannerVersion
Source§fn default() -> BannerVersion
fn default() -> BannerVersion
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BannerVersion
impl<'de> Deserialize<'de> for BannerVersion
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 Display for BannerVersion
impl Display for BannerVersion
Source§impl Ord for BannerVersion
impl Ord for BannerVersion
Source§fn cmp(&self, other: &BannerVersion) -> Ordering
fn cmp(&self, other: &BannerVersion) -> 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 BannerVersion
impl PartialEq for BannerVersion
Source§impl PartialOrd for BannerVersion
impl PartialOrd for BannerVersion
Source§impl Serialize for BannerVersion
impl Serialize for BannerVersion
impl Copy for BannerVersion
impl Eq for BannerVersion
impl StructuralPartialEq for BannerVersion
Auto Trait Implementations§
impl Freeze for BannerVersion
impl RefUnwindSafe for BannerVersion
impl Send for BannerVersion
impl Sync for BannerVersion
impl Unpin for BannerVersion
impl UnsafeUnpin for BannerVersion
impl UnwindSafe for BannerVersion
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