pub struct ParamSpec {
pub name: String,
pub param_type: ParamType,
pub default: ParamValue,
pub min: Option<f32>,
pub max: Option<f32>,
pub step: Option<f32>,
pub unit: ParamUnit,
pub enum_values: Vec<String>,
}Expand description
One runtime effect parameter.
Fields§
§name: StringWGSL-safe field name.
param_type: ParamTypeStorage and authoring type.
default: ParamValueValue used when a project omits this parameter.
min: Option<f32>Optional inclusive scalar minimum.
max: Option<f32>Optional inclusive scalar maximum.
step: Option<f32>Optional positive authoring increment.
unit: ParamUnitUI and serialization unit.
enum_values: Vec<String>Named values for ParamType::Enum.
Trait Implementations§
impl StructuralPartialEq for ParamSpec
Auto Trait Implementations§
impl Forget for ParamSpec
impl Freeze for ParamSpec
impl Move for ParamSpec
impl RefUnwindSafe for ParamSpec
impl Send for ParamSpecwhere
RawVecInner: Send,
impl Sync for ParamSpecwhere
RawVecInner: Sync,
impl Unpin for ParamSpec
impl UnsafeUnpin for ParamSpecwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for ParamSpecwhere
RawVecInner: UnwindSafe,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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