pub enum Func {
Show 14 variants
Defined,
If,
And,
Or,
Not,
Eq,
Neq,
Lt,
Leq,
Gt,
Geq,
Contains,
At,
Len,
}Expand description
Supported functions in USD variable expressions.
Variants§
Defined
defined(var1, var2, ...) - Tests if all variables are defined.
If
if(cond, trueVal, falseVal?) - Conditional expression.
And
and(x, y, ...) - Logical AND (short-circuit).
Or
or(x, y, ...) - Logical OR (short-circuit).
Not
not(x) - Logical NOT.
Eq
eq(x, y) - Equality comparison.
Neq
neq(x, y) - Inequality comparison.
Lt
lt(x, y) - Less than.
Leq
leq(x, y) - Less than or equal.
Gt
gt(x, y) - Greater than.
Geq
geq(x, y) - Greater than or equal.
Contains
contains(list_or_string, value) - Membership test.
At
at(list_or_string, index) - Element access (0-based, negative wraps).
Len
len(list_or_string) - Returns length.
Trait Implementations§
impl Copy for Func
impl Eq for Func
impl StructuralPartialEq for Func
Auto Trait Implementations§
impl Freeze for Func
impl RefUnwindSafe for Func
impl Send for Func
impl Sync for Func
impl Unpin for Func
impl UnsafeUnpin for Func
impl UnwindSafe for Func
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.