pub enum RsResolution {
UHD,
FullHD,
HD,
Custom(String),
Unknown,
}
Variants§
Implementations§
Source§impl RsResolution
impl RsResolution
pub fn from_filename(filename: &str) -> Self
Trait Implementations§
Source§impl Clone for RsResolution
impl Clone for RsResolution
Source§fn clone(&self) -> RsResolution
fn clone(&self) -> RsResolution
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 RsResolution
impl Debug for RsResolution
Source§impl Default for RsResolution
impl Default for RsResolution
Source§fn default() -> RsResolution
fn default() -> RsResolution
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RsResolution
impl<'de> Deserialize<'de> for RsResolution
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 RsResolution
impl Display for RsResolution
Source§impl FromStr for RsResolution
impl FromStr for RsResolution
Source§impl PartialEq for RsResolution
impl PartialEq for RsResolution
Source§impl Serialize for RsResolution
impl Serialize for RsResolution
Source§impl TryFrom<&str> for RsResolution
impl TryFrom<&str> for RsResolution
impl StructuralPartialEq for RsResolution
Auto Trait Implementations§
impl Freeze for RsResolution
impl RefUnwindSafe for RsResolution
impl Send for RsResolution
impl Sync for RsResolution
impl Unpin for RsResolution
impl UnwindSafe for RsResolution
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