pub struct VariantDescriptor {
pub summary: &'static str,
pub block_structure: &'static str,
pub variant_node: &'static str,
pub override_entry: &'static str,
pub override_props: &'static [(&'static str, &'static str, bool)],
pub example: &'static str,
}Expand description
Full schema descriptor for the variants / override surface.
Fields§
§summary: &'static strOne-line summary of the surface.
block_structure: &'static strDescription of the variants { … } block structure.
variant_node: &'static strDescription of the variant id=… source=… w=… h=… { … } node.
override_entry: &'static strDescription of the override node="<id>" … entry and its recognised keys.
override_props: &'static [(&'static str, &'static str, bool)]Recognised properties on an override entry, as (name, type, required) tuples.
example: &'static strA worked example of a variants block containing an override.
Auto Trait Implementations§
impl Freeze for VariantDescriptor
impl RefUnwindSafe for VariantDescriptor
impl Send for VariantDescriptor
impl Sync for VariantDescriptor
impl Unpin for VariantDescriptor
impl UnsafeUnpin for VariantDescriptor
impl UnwindSafe for VariantDescriptor
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