#[repr(C)]pub struct Settings {
    pub filter_type: FilterType,
    pub radius: f32,
    pub ring_color: f32,
    pub inner_color: f32,
    pub ring_size: f32,
    pub outer_blur: f32,
    pub inner_blur: f32,
    pub blades: i32,
    pub angle: f32,
    pub curvature: f32,
    pub noise: Noise,
    pub aspect_ratio: f32,
}Expand description
Data object that contains all bokeh settings.
This object is used to specify the settings when rendering.
Fields§
§filter_type: FilterTypeType of filter to use for the bokeh effect
radius: f32Radius of the bokeh effect
ring_color: f32Color of the ring in the bokeh effect
inner_color: f32Color of the inner part of the bokeh effect
ring_size: f32Size of the ring in the bokeh effect
outer_blur: f32Amount of blur applied to the outer part of the bokeh
inner_blur: f32Amount of blur applied to the inner part of the bokeh
blades: i32Number of blades for blade-based bokeh filters
angle: f32Angle of the bokeh effect
curvature: f32Curvature of the bokeh effect
noise: NoiseNoise settings for the bokeh effect
aspect_ratio: f32Aspect ratio for the bokeh effect
Trait Implementations§
impl Copy for Settings
Auto Trait Implementations§
impl Freeze for Settings
impl RefUnwindSafe for Settings
impl Send for Settings
impl Sync for Settings
impl Unpin for Settings
impl UnwindSafe for Settings
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
Source§impl<T> CloneToUninit for Twhere
    T: Clone,
 
impl<T> CloneToUninit for Twhere
    T: Clone,
Source§impl<T> IntoEither for T
 
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
 
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts 
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
 
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts 
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more