pub enum KeyKind {
}Expand description
What one structural key accepts.
Deliberately coarser than serde’s type: an editor needs to know that
[path] d is free text and [curve] family is one of a closed set, and
serde reports both as String.
Variants§
Bool
true / false.
Int
A whole number.
Float
A real number.
Text
Free text with no roster behind it — a path’s d, an axiom, a shader
body.
Expr
An expression in the preset grammar.
Roster(Roster)
One of a closed set.
Easing
An easing constant: seconds as a number, or { attack, release }.
Seed
A salt: a number, or the string "random" (ADR-0051).
Hold
A hold edge: "beat", "bar", or a positive number of seconds
(ADR-0180 rule 2). Not a Roster, because the number is not one of a
closed set and an editor offering only the two words would reject a
legal entry.
Colour
A colour: "#rrggbb" or [r, g, b] in 0..=1.
Map(&'static KeyKind)
A table of author-chosen names to values of this kind.
List(&'static KeyKind)
A list of values of this kind.
Table(&'static str)
A nested table, named in TABLES.
Trait Implementations§
impl Copy for KeyKind
impl Eq for KeyKind
impl StructuralPartialEq for KeyKind
Auto Trait Implementations§
impl Freeze for KeyKind
impl RefUnwindSafe for KeyKind
impl Send for KeyKind
impl Sync for KeyKind
impl Unpin for KeyKind
impl UnsafeUnpin for KeyKind
impl UnwindSafe for KeyKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.