Resolution

Enum Resolution 

Source
pub enum Resolution {
Show 23 variants R1280x720, R1280x800, R1280x960, R1280x1024, R3440x1440, R1600x900, R1600x1000, R1600x1200, R1600x1280, R3840x1600, R1920x1080, R1920x1200, R1920x1440, R1920x1536, R2560x1080, R2560x1440, R2560x1600, R2560x1920, R2560x2048, R3840x2160, R3840x2400, R3840x2880, R3840x3072,
}
Expand description

Resolutions you can filter by.

You can check out Resolution::dimensions for numerical values.

This cannot be customized further as only values allowed by wallhaven can be used.

Variants§

§

R1280x720

A resolution of 1280 by 720 pixels

§

R1280x800

A resolution of 1280 by 800 pixels

§

R1280x960

A resolution of 1280 by 960 pixels

§

R1280x1024

A resolution of 1280 by 1024 pixels

§

R3440x1440

A resolution of 3440 by 1440 pixels

§

R1600x900

A resolution of 1600 by 900 pixels

§

R1600x1000

A resolution of 1600 by 1000 pixels

§

R1600x1200

A resolution of 1600 by 1200 pixels

§

R1600x1280

A resolution of 1600 by 1280 pixels

§

R3840x1600

A resolution of 3840 by 1600 pixels

§

R1920x1080

A resolution of 1920 by 1080 pixels

§

R1920x1200

A resolution of 1920 by 1200 pixels

§

R1920x1440

A resolution of 1920 by 1440 pixels

§

R1920x1536

A resolution of 1920 by 1536 pixels

§

R2560x1080

A resolution of 2560 by 1080 pixels

§

R2560x1440

A resolution of 2560 by 1440 pixels

§

R2560x1600

A resolution of 2560 by 1600 pixels

§

R2560x1920

A resolution of 2560 by 1920 pixels

§

R2560x2048

A resolution of 2560 by 2048 pixels

§

R3840x2160

A resolution of 3840 by 2160 pixels

§

R3840x2400

A resolution of 3840 by 2400 pixels

§

R3840x2880

A resolution of 3840 by 2880 pixels

§

R3840x3072

A resolution of 3840 by 3072 pixels

Implementations§

Source§

impl Resolution

Source

pub const fn dimensions(&self) -> (u32, u32)

A shorthand for a match case returning the actual width and height of the resolution

Basically, for R(W)x(H) will return (W, H)

Trait Implementations§

Source§

impl Clone for Resolution

Source§

fn clone(&self) -> Resolution

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Resolution

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for Resolution

Source§

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 Resolution

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Serialize for Resolution

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl Copy for Resolution

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T> ToStringFallible for T
where T: Display,

Source§

fn try_to_string(&self) -> Result<String, TryReserveError>

ToString::to_string, but without panic on OOM.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,