#[repr(C)]pub struct sd_hires_params_t {
pub enabled: bool,
pub upscaler: sd_hires_upscaler_t,
pub model_path: *const c_char,
pub scale: f32,
pub target_width: c_int,
pub target_height: c_int,
pub steps: c_int,
pub denoising_strength: f32,
pub upscale_tile_size: c_int,
pub custom_sigmas: *mut f32,
pub custom_sigmas_count: c_int,
}Fields§
§enabled: bool§upscaler: sd_hires_upscaler_t§model_path: *const c_char§scale: f32§target_width: c_int§target_height: c_int§steps: c_int§denoising_strength: f32§upscale_tile_size: c_int§custom_sigmas: *mut f32§custom_sigmas_count: c_intTrait Implementations§
Source§impl Clone for sd_hires_params_t
impl Clone for sd_hires_params_t
Source§fn clone(&self) -> sd_hires_params_t
fn clone(&self) -> sd_hires_params_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_params_t
Auto Trait Implementations§
impl !Send for sd_hires_params_t
impl !Sync for sd_hires_params_t
impl Freeze for sd_hires_params_t
impl RefUnwindSafe for sd_hires_params_t
impl Unpin for sd_hires_params_t
impl UnsafeUnpin for sd_hires_params_t
impl UnwindSafe for sd_hires_params_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