#[repr(i32)]pub enum FilterMode {
Simple = 0,
BokehCreator = 1,
Image = 3,
}Variants§
Simple = 0
Simple is the most lightweight, as its calculated without much effort on the fly
BokehCreator = 1
Generate using the bokeh creator
Image = 3
Image mode that uses the input image for convolution filter
Implementations§
Source§impl FilterMode
impl FilterMode
Source§impl FilterMode
impl FilterMode
Sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
Sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
Source§impl Clone for FilterMode
impl Clone for FilterMode
Source§fn clone(&self) -> FilterMode
fn clone(&self) -> FilterMode
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 FilterMode
impl Debug for FilterMode
Source§impl Default for FilterMode
impl Default for FilterMode
Source§fn default() -> FilterMode
fn default() -> FilterMode
Returns the “default value” for a type. Read more
Source§impl From<FilterMode> for i32
impl From<FilterMode> for i32
Source§fn from(value: FilterMode) -> i32
fn from(value: FilterMode) -> i32
Converts to this type from the input type.
Source§impl Hash for FilterMode
impl Hash for FilterMode
Source§impl Ord for FilterMode
impl Ord for FilterMode
Source§fn cmp(&self, other: &FilterMode) -> Ordering
fn cmp(&self, other: &FilterMode) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for FilterMode
impl PartialEq for FilterMode
Source§impl PartialOrd for FilterMode
impl PartialOrd for FilterMode
Source§impl TryFrom<i32> for FilterMode
impl TryFrom<i32> for FilterMode
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
Source§fn try_from(value: i32) -> Result<FilterMode, UnknownEnumValue>
fn try_from(value: i32) -> Result<FilterMode, UnknownEnumValue>
Performs the conversion.
impl Copy for FilterMode
impl Eq for FilterMode
impl StructuralPartialEq for FilterMode
Auto Trait Implementations§
impl Freeze for FilterMode
impl RefUnwindSafe for FilterMode
impl Send for FilterMode
impl Sync for FilterMode
impl Unpin for FilterMode
impl UnwindSafe for FilterMode
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