Enum streamduck_core::modules::components::UIFieldValue
source · [−]pub enum UIFieldValue {
Show 14 variants
Header,
InputFieldFloat(f32),
InputFieldInteger(i32),
InputFieldString(String),
InputFieldFloat2(f32, f32),
InputFieldInteger2(i32, i32),
InputFieldUnsignedInteger(u32),
ValueSliderFloat(f32),
ValueSliderInteger(i32),
Collapsable(Vec<UIValue>),
Array(Vec<Vec<UIValue>>),
Choice(String),
Checkbox(bool),
Color(u8, u8, u8, u8),
}Expand description
UI Field value, current state of the settings
Variants
Header
Displays a header for separation reasons
InputFieldFloat(f32)
Text field that accepts float values
InputFieldInteger(i32)
Text field that accepts integer values
InputFieldString(String)
Text field that accepts strings
InputFieldFloat2(f32, f32)
Text field that accepts 2 float values
InputFieldInteger2(i32, i32)
Text field that accepts 2 integer values
InputFieldUnsignedInteger(u32)
Text field that accepts only positive integer values
ValueSliderFloat(f32)
Float slider of specified bounds
ValueSliderInteger(i32)
Integer slider of specified bounds
Collapsable(Vec<UIValue>)
Collapsable submenu
Array(Vec<Vec<UIValue>>)
Array of menus
Choice(String)
Choice dropdown
Checkbox(bool)
Checkbox
Color(u8, u8, u8, u8)
Color picker
Implementations
sourceimpl UIFieldValue
impl UIFieldValue
pub fn try_into_bool(&self) -> Result<bool, String>
pub fn try_into_f32(&self) -> Result<f32, String>
pub fn try_into_i32(&self) -> Result<i32, String>
pub fn try_into_u32(&self) -> Result<u32, String>
pub fn try_into_f32_f32(&self) -> Result<(f32, f32), String>
pub fn try_into_i32_i32(&self) -> Result<(i32, i32), String>
pub fn try_into_color(&self) -> Result<Color, String>
pub fn try_into_string(&self) -> Result<String, String>
Trait Implementations
sourceimpl Clone for UIFieldValue
impl Clone for UIFieldValue
sourcefn clone(&self) -> UIFieldValue
fn clone(&self) -> UIFieldValue
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for UIFieldValue
impl Debug for UIFieldValue
sourceimpl<'de> Deserialize<'de> for UIFieldValue
impl<'de> Deserialize<'de> for UIFieldValue
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Into<UIFieldValue> for Color
impl Into<UIFieldValue> for Color
From conversions
sourcefn into(self) -> UIFieldValue
fn into(self) -> UIFieldValue
Performs the conversion.
sourceimpl Into<UIFieldValue> for &Color
impl Into<UIFieldValue> for &Color
sourcefn into(self) -> UIFieldValue
fn into(self) -> UIFieldValue
Performs the conversion.
sourceimpl Serialize for UIFieldValue
impl Serialize for UIFieldValue
sourceimpl TryInto<PathBuf> for UIFieldValue
impl TryInto<PathBuf> for UIFieldValue
sourceimpl TryInto<PathBuf> for &UIFieldValue
impl TryInto<PathBuf> for &UIFieldValue
sourceimpl TryInto<String> for UIFieldValue
impl TryInto<String> for UIFieldValue
sourceimpl TryInto<String> for &UIFieldValue
impl TryInto<String> for &UIFieldValue
sourceimpl TryInto<bool> for UIFieldValue
impl TryInto<bool> for UIFieldValue
To conversions
sourceimpl TryInto<bool> for &UIFieldValue
impl TryInto<bool> for &UIFieldValue
sourceimpl TryInto<f32> for UIFieldValue
impl TryInto<f32> for UIFieldValue
sourceimpl TryInto<f32> for &UIFieldValue
impl TryInto<f32> for &UIFieldValue
sourceimpl TryInto<i32> for UIFieldValue
impl TryInto<i32> for UIFieldValue
sourceimpl TryInto<i32> for &UIFieldValue
impl TryInto<i32> for &UIFieldValue
sourceimpl TryInto<u32> for UIFieldValue
impl TryInto<u32> for UIFieldValue
Auto Trait Implementations
impl RefUnwindSafe for UIFieldValue
impl Send for UIFieldValue
impl Sync for UIFieldValue
impl Unpin for UIFieldValue
impl UnwindSafe for UIFieldValue
Blanket Implementations
sourceimpl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
T: FloatComponent,
Swp: WhitePoint,
Dwp: WhitePoint,
D: AdaptFrom<S, Swp, Dwp, T>,
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
T: FloatComponent,
Swp: WhitePoint,
Dwp: WhitePoint,
D: AdaptFrom<S, Swp, Dwp, T>,
sourcepub fn adapt_into_using<M>(self, method: M) -> D where
M: TransformMatrix<Swp, Dwp, T>,
pub fn adapt_into_using<M>(self, method: M) -> D where
M: TransformMatrix<Swp, Dwp, T>,
Convert the source color to the destination color using the specified method Read more
sourcefn adapt_into(self) -> D
fn adapt_into(self) -> D
Convert the source color to the destination color using the bradford method by default Read more
impl<Src, Scheme> ApproxFrom<Src, Scheme> for Src where
Scheme: ApproxScheme,
impl<Src, Scheme> ApproxFrom<Src, Scheme> for Src where
Scheme: ApproxScheme,
type Err = NoError
type Err = NoError
The error type produced by a failed conversion.
pub fn approx_from(
src: Src
) -> Result<Src, <Src as ApproxFrom<Src, Scheme>>::Err>
pub fn approx_from(
src: Src
) -> Result<Src, <Src as ApproxFrom<Src, Scheme>>::Err>
Convert the given value into an approximately equivalent representation.
impl<Dst, Src, Scheme> ApproxInto<Dst, Scheme> for Src where
Dst: ApproxFrom<Src, Scheme>,
Scheme: ApproxScheme,
impl<Dst, Src, Scheme> ApproxInto<Dst, Scheme> for Src where
Dst: ApproxFrom<Src, Scheme>,
Scheme: ApproxScheme,
type Err = <Dst as ApproxFrom<Src, Scheme>>::Err
type Err = <Dst as ApproxFrom<Src, Scheme>>::Err
The error type produced by a failed conversion.
pub fn approx_into(self) -> Result<Dst, <Src as ApproxInto<Dst, Scheme>>::Err>
pub fn approx_into(self) -> Result<Dst, <Src as ApproxInto<Dst, Scheme>>::Err>
Convert the subject into an approximately equivalent representation.
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> ConvUtil for T
impl<T> ConvUtil for T
fn approx_as<Dst>(self) -> Result<Dst, Self::Err> where
Self: ApproxInto<Dst, DefaultApprox>,
fn approx_as<Dst>(self) -> Result<Dst, Self::Err> where
Self: ApproxInto<Dst, DefaultApprox>,
Approximate the subject to a given type with the default scheme.
fn approx_as_by<Dst, Scheme>(self) -> Result<Dst, Self::Err> where
Self: ApproxInto<Dst, Scheme>,
Scheme: ApproxScheme,
fn approx_as_by<Dst, Scheme>(self) -> Result<Dst, Self::Err> where
Self: ApproxInto<Dst, Scheme>,
Scheme: ApproxScheme,
Approximate the subject to a given type with a specific scheme.
sourceimpl<T, U> IntoColor<U> for T where
U: FromColor<T>,
impl<T, U> IntoColor<U> for T where
U: FromColor<T>,
sourcepub fn into_color(self) -> U
pub fn into_color(self) -> U
Convert into T with values clamped to the color defined bounds Read more
sourceimpl<T, U> IntoColorUnclamped<U> for T where
U: FromColorUnclamped<T>,
impl<T, U> IntoColorUnclamped<U> for T where
U: FromColorUnclamped<T>,
sourcepub fn into_color_unclamped(self) -> U
pub fn into_color_unclamped(self) -> U
Convert into T. The resulting color might be invalid in its color space Read more
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T, U> TryIntoColor<U> for T where
U: TryFromColor<T>,
impl<T, U> TryIntoColor<U> for T where
U: TryFromColor<T>,
sourcepub fn try_into_color(self) -> Result<U, OutOfBounds<U>>
pub fn try_into_color(self) -> Result<U, OutOfBounds<U>>
Convert into T, returning ok if the color is inside of its defined
range, otherwise an OutOfBounds error is returned which contains
the unclamped color. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
pub fn vzip(self) -> V
impl<Src> ValueFrom<Src> for Src
impl<Src> ValueFrom<Src> for Src
type Err = NoError
type Err = NoError
The error type produced by a failed conversion.
pub fn value_from(src: Src) -> Result<Src, <Src as ValueFrom<Src>>::Err>
pub fn value_from(src: Src) -> Result<Src, <Src as ValueFrom<Src>>::Err>
Convert the given value into an exactly equivalent representation.
impl<Src, Dst> ValueInto<Dst> for Src where
Dst: ValueFrom<Src>,
impl<Src, Dst> ValueInto<Dst> for Src where
Dst: ValueFrom<Src>,
type Err = <Dst as ValueFrom<Src>>::Err
type Err = <Dst as ValueFrom<Src>>::Err
The error type produced by a failed conversion.
pub fn value_into(self) -> Result<Dst, <Src as ValueInto<Dst>>::Err>
pub fn value_into(self) -> Result<Dst, <Src as ValueInto<Dst>>::Err>
Convert the subject into an exactly equivalent representation.