pub struct ParamCoercions {
pub false_as_number: bool,
pub true_as_number: bool,
pub zero_as_null: bool,
pub null_vector_as_null: bool,
pub empty_array_as_string: bool,
}Expand description
Literal substitutions accepted at one parameter position and normalized into the parameter’s declared semantic type before it enters WIR.
These are deliberately per-parameter facts. They do not establish a global relationship between Workshop booleans, numbers, arrays, strings, vectors, or null.
Fields§
§false_as_number: boolAccept False as numeric zero.
true_as_number: boolAccept True as numeric one.
zero_as_null: boolAccept numeric zero as Null.
null_vector_as_null: boolAccept Vector(0, 0, 0) as Null.
empty_array_as_string: boolAccept Empty Array as an empty string.
Trait Implementations§
Source§impl Clone for ParamCoercions
impl Clone for ParamCoercions
Source§fn clone(&self) -> ParamCoercions
fn clone(&self) -> ParamCoercions
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 ParamCoercions
Source§impl Debug for ParamCoercions
impl Debug for ParamCoercions
Source§impl Default for ParamCoercions
impl Default for ParamCoercions
Source§fn default() -> ParamCoercions
fn default() -> ParamCoercions
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ParamCoercions
impl<'de> Deserialize<'de> for ParamCoercions
Source§fn 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
impl Eq for ParamCoercions
Source§impl PartialEq for ParamCoercions
impl PartialEq for ParamCoercions
impl StructuralPartialEq for ParamCoercions
Auto Trait Implementations§
impl Freeze for ParamCoercions
impl RefUnwindSafe for ParamCoercions
impl Send for ParamCoercions
impl Sync for ParamCoercions
impl Unpin for ParamCoercions
impl UnsafeUnpin for ParamCoercions
impl UnwindSafe for ParamCoercions
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