pub enum Shape {
Show 18 variants
Any,
Bool,
Int {
min: i64,
max: i64,
},
Float,
Str,
Text,
Image,
Color,
Res,
Ref(&'static [&'static str]),
Tag(&'static [&'static str]),
RefOrTag(&'static [&'static str]),
RefOrImage(&'static [&'static str]),
List(ShapeFn),
Map(ShapeFn),
Optional(ShapeFn),
Struct(StructShape),
Enum(EnumShape),
}Expand description
What a format looks like: drives Yog-IDLE’s property grids and pickers, completion, hover docs and the docs’ field tables.
Variants§
Any
Any value.
Bool
Int
Float
Str
Plain text.
Text
Yog text, a @Set.key resource, or @kind:id (that content’s name).
Image
An image source or a @Set.key image resource.
Color
#RRGGBB/#AARRGGBB or a @Set.key color resource.
Res
A mod resource, @Set.key.
Ref(&'static [&'static str])
Content of a kind ("": any kind, written @kind:id).
Tag(&'static [&'static str])
A tag of content of a kind.
RefOrTag(&'static [&'static str])
Content of a kind or a tag of it.
RefOrImage(&'static [&'static str])
Content of a kind (@item:…) or an image source.
List(ShapeFn)
Map(ShapeFn)
An object of any keys, every value this shape.
Optional(ShapeFn)
A value or null.
Struct(StructShape)
Enum(EnumShape)
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Shape
impl RefUnwindSafe for Shape
impl Send for Shape
impl Sync for Shape
impl Unpin for Shape
impl UnsafeUnpin for Shape
impl UnwindSafe for Shape
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