#[non_exhaustive]#[repr(u32)]pub enum sd_hires_upscaler_t {
SD_HIRES_UPSCALER_NONE = 0,
SD_HIRES_UPSCALER_LATENT = 1,
SD_HIRES_UPSCALER_LATENT_NEAREST = 2,
SD_HIRES_UPSCALER_LATENT_NEAREST_EXACT = 3,
SD_HIRES_UPSCALER_LATENT_ANTIALIASED = 4,
SD_HIRES_UPSCALER_LATENT_BICUBIC = 5,
SD_HIRES_UPSCALER_LATENT_BICUBIC_ANTIALIASED = 6,
SD_HIRES_UPSCALER_LANCZOS = 7,
SD_HIRES_UPSCALER_NEAREST = 8,
SD_HIRES_UPSCALER_MODEL = 9,
SD_HIRES_UPSCALER_COUNT = 10,
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
SD_HIRES_UPSCALER_NONE = 0
SD_HIRES_UPSCALER_LATENT = 1
SD_HIRES_UPSCALER_LATENT_NEAREST = 2
SD_HIRES_UPSCALER_LATENT_NEAREST_EXACT = 3
SD_HIRES_UPSCALER_LATENT_ANTIALIASED = 4
SD_HIRES_UPSCALER_LATENT_BICUBIC = 5
SD_HIRES_UPSCALER_LATENT_BICUBIC_ANTIALIASED = 6
SD_HIRES_UPSCALER_LANCZOS = 7
SD_HIRES_UPSCALER_NEAREST = 8
SD_HIRES_UPSCALER_MODEL = 9
SD_HIRES_UPSCALER_COUNT = 10
Trait Implementations§
Source§impl Clone for sd_hires_upscaler_t
impl Clone for sd_hires_upscaler_t
Source§fn clone(&self) -> sd_hires_upscaler_t
fn clone(&self) -> sd_hires_upscaler_t
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for sd_hires_upscaler_t
Source§impl Debug for sd_hires_upscaler_t
impl Debug for sd_hires_upscaler_t
impl Eq for sd_hires_upscaler_t
Source§impl Hash for sd_hires_upscaler_t
impl Hash for sd_hires_upscaler_t
Source§impl PartialEq for sd_hires_upscaler_t
impl PartialEq for sd_hires_upscaler_t
Source§fn eq(&self, other: &sd_hires_upscaler_t) -> bool
fn eq(&self, other: &sd_hires_upscaler_t) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for sd_hires_upscaler_t
Auto Trait Implementations§
impl Freeze for sd_hires_upscaler_t
impl RefUnwindSafe for sd_hires_upscaler_t
impl Send for sd_hires_upscaler_t
impl Sync for sd_hires_upscaler_t
impl Unpin for sd_hires_upscaler_t
impl UnsafeUnpin for sd_hires_upscaler_t
impl UnwindSafe for sd_hires_upscaler_t
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