Enum minecraft_assets::schemas::blockstates::multipart::WhenClause [−][src]
Expand description
A list of conditions that have to be met for a model to be applied.
Variants
Single(Condition)
Tuple Fields
0: Condition
A when
clause that is true when the given condition is true.
Or
A when
clause that is true when any of the given conditions is true.
Implementations
pub fn applies<'a, I>(&self, state_values: I) -> bool where
I: IntoIterator<Item = (&'a str, &'a StateValue)> + Clone,
pub fn applies<'a, I>(&self, state_values: I) -> bool where
I: IntoIterator<Item = (&'a str, &'a StateValue)> + Clone,
Returns true
if any of the conditions specified by this when
clause are satisfied by the provided state values.
See Condition::applies
.
Trait Implementations
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
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for WhenClause
impl Send for WhenClause
impl Sync for WhenClause
impl Unpin for WhenClause
impl UnwindSafe for WhenClause
Blanket Implementations
Mutably borrows from an owned value. Read more