pub trait Schema: Sized {
Show 14 methods
// Required methods
fn shape() -> Shape;
fn read(v: &ValueRef<'_>, cx: &mut Reader<'_>) -> Option<Self>;
fn write(&self) -> Value;
// Provided methods
fn absent() -> Option<Self> { ... }
fn skip(&self) -> bool { ... }
fn encode(&self, w: &mut Writer) { ... }
fn write_text(&self, w: &mut Writer) { ... }
fn decode(d: &mut Decoder<'_>) -> Option<Self> { ... }
fn pack(&self, p: &mut Packer) { ... }
fn unpack(u: &mut Unpacker<'_>) -> Option<Self> { ... }
fn pack_list(items: &[Self], p: &mut Packer) { ... }
fn unpack_list(u: &mut Unpacker<'_>) -> Option<Vec<Self>> { ... }
fn encode_list(items: &[Self], w: &mut Writer) { ... }
fn decode_list(d: &mut Decoder<'_>) -> Option<Vec<Self>> { ... }
}Expand description
#[derive(Schema)]: a type read and written as Yog Data (stores, packets, frames).
A format: a type that reads, writes, encodes, packs and describes itself.
Required Methods§
Provided Methods§
Sourcefn absent() -> Option<Self>
fn absent() -> Option<Self>
The value of a field that isn’t there — None: the field is required.
Sourcefn encode(&self, w: &mut Writer)
fn encode(&self, w: &mut Writer)
Writes itself in the binary form, straight — Schema::write’s
value encoded, unless the type knows better (derived ones do).
Sourcefn write_text(&self, w: &mut Writer)
fn write_text(&self, w: &mut Writer)
Writes itself as text, straight (crate::text::Writer) —
Schema::write’s value as text, unless the type knows better
(derived ones do): no value tree is built on the way.
Sourcefn decode(d: &mut Decoder<'_>) -> Option<Self>
fn decode(d: &mut Decoder<'_>) -> Option<Self>
Reads itself from the binary form, straight; None when it isn’t
what Schema::encode writes — then read_bytes reads the slow
way, which says what’s wrong. Through a value unless the type knows
better (derived ones do).
Sourcefn pack(&self, p: &mut Packer)
fn pack(&self, p: &mut Packer)
Packs itself into a frame (crate::frame): its binary form as
bytes, unless the type packs itself (derived ones and plain types do).
Sourcefn unpack(u: &mut Unpacker<'_>) -> Option<Self>
fn unpack(u: &mut Unpacker<'_>) -> Option<Self>
Reads itself out of a frame; None if the bytes aren’t what
Schema::pack writes.
Sourcefn pack_list(items: &[Self], p: &mut Packer)
fn pack_list(items: &[Self], p: &mut Packer)
A list of these packed: a count, then each one (floats raw).
Sourcefn unpack_list(u: &mut Unpacker<'_>) -> Option<Vec<Self>>
fn unpack_list(u: &mut Unpacker<'_>) -> Option<Vec<Self>>
A list of these out of a frame.
Sourcefn encode_list(items: &[Self], w: &mut Writer)
fn encode_list(items: &[Self], w: &mut Writer)
A list of these written straight (numbers pack theirs).
Sourcefn decode_list(d: &mut Decoder<'_>) -> Option<Vec<Self>>
fn decode_list(d: &mut Decoder<'_>) -> Option<Vec<Self>>
A list of these read straight.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementations on Foreign Types§
Source§impl Schema for ()
A number as carried (an i64) back to T: out of T’s range, none.
Nothing: what a call answers when it only says it’s done.
impl Schema for ()
A number as carried (an i64) back to T: out of T’s range, none.
Nothing: what a call answers when it only says it’s done.
Source§impl Schema for AdvancementDef
impl Schema for AdvancementDef
fn encode(&self, __sd_w: &mut Writer)
fn write_text(&self, __sd_w: &mut Writer)
fn decode(__sd_d: &mut Decoder<'_>) -> Option<AdvancementDef>
fn pack(&self, __sd_p: &mut Packer)
fn unpack(__sd_u: &mut Unpacker<'_>) -> Option<AdvancementDef>
fn shape() -> Shape
fn read(v: &ValueRef<'_>, cx: &mut Reader<'_>) -> Option<AdvancementDef>
fn write(&self) -> Value
Source§impl Schema for Animation
impl Schema for Animation
fn encode(&self, __sd_w: &mut Writer)
fn write_text(&self, __sd_w: &mut Writer)
fn decode(__sd_d: &mut Decoder<'_>) -> Option<Animation>
fn pack(&self, __sd_p: &mut Packer)
fn unpack(__sd_u: &mut Unpacker<'_>) -> Option<Animation>
fn shape() -> Shape
fn read(v: &ValueRef<'_>, cx: &mut Reader<'_>) -> Option<Animation>
fn write(&self) -> Value
Source§impl Schema for AnyRefOrTag
impl Schema for AnyRefOrTag
Source§impl Schema for Arc<str>
A string shared without copying.
impl Schema for Arc<str>
A string shared without copying.
fn shape() -> Shape
fn read(v: &ValueRef<'_>, cx: &mut Reader<'_>) -> Option<Arc<str>>
fn write(&self) -> Value
fn write_text(&self, w: &mut Writer)
fn encode(&self, w: &mut Writer)
fn decode(d: &mut Decoder<'_>) -> Option<Arc<str>>
fn pack(&self, p: &mut Packer)
fn unpack(u: &mut Unpacker<'_>) -> Option<Arc<str>>
Source§impl Schema for ArmorMaterialDef
impl Schema for ArmorMaterialDef
fn encode(&self, __sd_w: &mut Writer)
fn write_text(&self, __sd_w: &mut Writer)
fn pack(&self, __sd_p: &mut Packer)
fn unpack(__sd_u: &mut Unpacker<'_>) -> Option<ArmorMaterialDef>
fn shape() -> Shape
fn read(v: &ValueRef<'_>, cx: &mut Reader<'_>) -> Option<ArmorMaterialDef>
fn write(&self) -> Value
Source§impl Schema for ArmorProps
impl Schema for ArmorProps
fn encode(&self, __sd_w: &mut Writer)
fn write_text(&self, __sd_w: &mut Writer)
fn decode(__sd_d: &mut Decoder<'_>) -> Option<ArmorProps>
fn pack(&self, __sd_p: &mut Packer)
fn unpack(__sd_u: &mut Unpacker<'_>) -> Option<ArmorProps>
fn shape() -> Shape
fn read(v: &ValueRef<'_>, cx: &mut Reader<'_>) -> Option<ArmorProps>
fn write(&self) -> Value
Source§impl Schema for Axis
impl Schema for Axis
fn shape() -> Shape
fn pack(&self, p: &mut Packer)
fn unpack(u: &mut Unpacker<'_>) -> Option<Axis>
fn read(v: &ValueRef<'_>, cx: &mut Reader<'_>) -> Option<Axis>
fn write(&self) -> Value
fn encode(&self, w: &mut Writer)
fn write_text(&self, w: &mut Writer)
fn decode(d: &mut Decoder<'_>) -> Option<Axis>
Source§impl Schema for BlockFile
impl Schema for BlockFile
fn encode(&self, __sd_w: &mut Writer)
fn write_text(&self, __sd_w: &mut Writer)
fn decode(__sd_d: &mut Decoder<'_>) -> Option<BlockFile>
fn pack(&self, __sd_p: &mut Packer)
fn unpack(__sd_u: &mut Unpacker<'_>) -> Option<BlockFile>
fn shape() -> Shape
fn read(v: &ValueRef<'_>, cx: &mut Reader<'_>) -> Option<BlockFile>
fn write(&self) -> Value
Source§impl Schema for BlockItemProps
impl Schema for BlockItemProps
fn encode(&self, __sd_w: &mut Writer)
fn write_text(&self, __sd_w: &mut Writer)
fn pack(&self, __sd_p: &mut Packer)
fn unpack(__sd_u: &mut Unpacker<'_>) -> Option<BlockItemProps>
fn shape() -> Shape
fn read(v: &ValueRef<'_>, cx: &mut Reader<'_>) -> Option<BlockItemProps>
fn write(&self) -> Value
Source§impl Schema for BlockKind
impl Schema for BlockKind
fn encode(&self, __sd_w: &mut Writer)
fn write_text(&self, __sd_w: &mut Writer)
fn decode(__sd_d: &mut Decoder<'_>) -> Option<BlockKind>
fn pack(&self, __sd_p: &mut Packer)
fn unpack(__sd_u: &mut Unpacker<'_>) -> Option<BlockKind>
fn shape() -> Shape
fn read(v: &ValueRef<'_>, cx: &mut Reader<'_>) -> Option<BlockKind>
fn write(&self) -> Value
Source§impl Schema for BlockProps
impl Schema for BlockProps
fn encode(&self, __sd_w: &mut Writer)
fn write_text(&self, __sd_w: &mut Writer)
fn pack(&self, __sd_p: &mut Packer)
fn unpack(__sd_u: &mut Unpacker<'_>) -> Option<BlockProps>
fn shape() -> Shape
fn read(v: &ValueRef<'_>, cx: &mut Reader<'_>) -> Option<BlockProps>
fn write(&self) -> Value
Source§impl Schema for BlockShape
impl Schema for BlockShape
Source§impl Schema for Box<str>
impl Schema for Box<str>
fn shape() -> Shape
fn read(v: &ValueRef<'_>, cx: &mut Reader<'_>) -> Option<Box<str>>
fn write(&self) -> Value
fn write_text(&self, w: &mut Writer)
fn encode(&self, w: &mut Writer)
fn decode(d: &mut Decoder<'_>) -> Option<Box<str>>
fn pack(&self, p: &mut Packer)
fn unpack(u: &mut Unpacker<'_>) -> Option<Box<str>>
Source§impl Schema for Brewing
impl Schema for Brewing
fn encode(&self, __sd_w: &mut Writer)
fn write_text(&self, __sd_w: &mut Writer)
fn decode(__sd_d: &mut Decoder<'_>) -> Option<Brewing>
fn pack(&self, __sd_p: &mut Packer)
fn unpack(__sd_u: &mut Unpacker<'_>) -> Option<Brewing>
fn shape() -> Shape
fn read(v: &ValueRef<'_>, cx: &mut Reader<'_>) -> Option<Brewing>
fn write(&self) -> Value
Source§impl Schema for Built
impl Schema for Built
fn encode(&self, __sd_w: &mut Writer)
fn write_text(&self, __sd_w: &mut Writer)
fn decode(__sd_d: &mut Decoder<'_>) -> Option<Built>
fn pack(&self, __sd_p: &mut Packer)
fn unpack(__sd_u: &mut Unpacker<'_>) -> Option<Built>
fn shape() -> Shape
fn read(v: &ValueRef<'_>, cx: &mut Reader<'_>) -> Option<Built>
fn write(&self) -> Value
Source§impl Schema for Caves
impl Schema for Caves
fn encode(&self, __sd_w: &mut Writer)
fn write_text(&self, __sd_w: &mut Writer)
fn pack(&self, __sd_p: &mut Packer)
fn unpack(__sd_u: &mut Unpacker<'_>) -> Option<Caves>
fn shape() -> Shape
fn read(v: &ValueRef<'_>, cx: &mut Reader<'_>) -> Option<Caves>
fn write(&self) -> Value
Source§impl Schema for CharGlyph
impl Schema for CharGlyph
fn encode(&self, __sd_w: &mut Writer)
fn write_text(&self, __sd_w: &mut Writer)
fn decode(__sd_d: &mut Decoder<'_>) -> Option<CharGlyph>
fn pack(&self, __sd_p: &mut Packer)
fn unpack(__sd_u: &mut Unpacker<'_>) -> Option<CharGlyph>
fn shape() -> Shape
fn read(v: &ValueRef<'_>, cx: &mut Reader<'_>) -> Option<CharGlyph>
fn write(&self) -> Value
Source§impl Schema for Color
impl Schema for Color
fn shape() -> Shape
fn read(v: &ValueRef<'_>, cx: &mut Reader<'_>) -> Option<Color>
fn write(&self) -> Value
fn encode(&self, w: &mut Writer)
fn decode(d: &mut Decoder<'_>) -> Option<Color>
fn pack(&self, p: &mut Packer)
fn unpack(u: &mut Unpacker<'_>) -> Option<Color>
Source§impl Schema for Common
impl Schema for Common
fn encode(&self, __sd_w: &mut Writer)
fn write_text(&self, __sd_w: &mut Writer)
fn decode(__sd_d: &mut Decoder<'_>) -> Option<Common>
fn pack(&self, __sd_p: &mut Packer)
fn unpack(__sd_u: &mut Unpacker<'_>) -> Option<Common>
fn shape() -> Shape
fn read(v: &ValueRef<'_>, cx: &mut Reader<'_>) -> Option<Common>
fn write(&self) -> Value
Source§impl Schema for Connect
impl Schema for Connect
fn encode(&self, __sd_w: &mut Writer)
fn write_text(&self, __sd_w: &mut Writer)
fn decode(__sd_d: &mut Decoder<'_>) -> Option<Connect>
fn pack(&self, __sd_p: &mut Packer)
fn unpack(__sd_u: &mut Unpacker<'_>) -> Option<Connect>
fn shape() -> Shape
fn read(v: &ValueRef<'_>, cx: &mut Reader<'_>) -> Option<Connect>
fn write(&self) -> Value
Source§impl Schema for Cooking
impl Schema for Cooking
fn encode(&self, __sd_w: &mut Writer)
fn write_text(&self, __sd_w: &mut Writer)
fn decode(__sd_d: &mut Decoder<'_>) -> Option<Cooking>
fn pack(&self, __sd_p: &mut Packer)
fn unpack(__sd_u: &mut Unpacker<'_>) -> Option<Cooking>
fn shape() -> Shape
fn read(v: &ValueRef<'_>, cx: &mut Reader<'_>) -> Option<Cooking>
fn write(&self) -> Value
Source§impl Schema for Cow<'static, str>
Text that may be a constant: borrowed where it’s written, owned once read.
impl Schema for Cow<'static, str>
Text that may be a constant: borrowed where it’s written, owned once read.
fn shape() -> Shape
fn read(v: &ValueRef<'_>, cx: &mut Reader<'_>) -> Option<Cow<'static, str>>
fn write(&self) -> Value
fn write_text(&self, w: &mut Writer)
fn encode(&self, w: &mut Writer)
fn decode(d: &mut Decoder<'_>) -> Option<Cow<'static, str>>
fn pack(&self, p: &mut Packer)
fn unpack(u: &mut Unpacker<'_>) -> Option<Cow<'static, str>>
Source§impl Schema for CriterionDef
impl Schema for CriterionDef
fn encode(&self, __sd_w: &mut Writer)
fn write_text(&self, __sd_w: &mut Writer)
fn decode(__sd_d: &mut Decoder<'_>) -> Option<CriterionDef>
fn pack(&self, __sd_p: &mut Packer)
fn unpack(__sd_u: &mut Unpacker<'_>) -> Option<CriterionDef>
fn shape() -> Shape
fn read(v: &ValueRef<'_>, cx: &mut Reader<'_>) -> Option<CriterionDef>
fn write(&self) -> Value
Source§impl Schema for Custom
impl Schema for Custom
fn encode(&self, __sd_w: &mut Writer)
fn write_text(&self, __sd_w: &mut Writer)
fn decode(__sd_d: &mut Decoder<'_>) -> Option<Custom>
fn pack(&self, __sd_p: &mut Packer)
fn unpack(__sd_u: &mut Unpacker<'_>) -> Option<Custom>
fn shape() -> Shape
fn read(v: &ValueRef<'_>, cx: &mut Reader<'_>) -> Option<Custom>
fn write(&self) -> Value
Source§impl Schema for DamageTypeDef
impl Schema for DamageTypeDef
fn encode(&self, __sd_w: &mut Writer)
fn write_text(&self, __sd_w: &mut Writer)
fn decode(__sd_d: &mut Decoder<'_>) -> Option<DamageTypeDef>
fn pack(&self, __sd_p: &mut Packer)
fn unpack(__sd_u: &mut Unpacker<'_>) -> Option<DamageTypeDef>
fn shape() -> Shape
fn read(v: &ValueRef<'_>, cx: &mut Reader<'_>) -> Option<DamageTypeDef>
fn write(&self) -> Value
Source§impl Schema for DevSection
impl Schema for DevSection
fn encode(&self, __sd_w: &mut Writer)
fn write_text(&self, __sd_w: &mut Writer)
fn decode(__sd_d: &mut Decoder<'_>) -> Option<DevSection>
fn pack(&self, __sd_p: &mut Packer)
fn unpack(__sd_u: &mut Unpacker<'_>) -> Option<DevSection>
fn shape() -> Shape
fn read(v: &ValueRef<'_>, cx: &mut Reader<'_>) -> Option<DevSection>
fn write(&self) -> Value
Source§impl Schema for DimensionDef
impl Schema for DimensionDef
fn encode(&self, __sd_w: &mut Writer)
fn write_text(&self, __sd_w: &mut Writer)
fn decode(__sd_d: &mut Decoder<'_>) -> Option<DimensionDef>
fn pack(&self, __sd_p: &mut Packer)
fn unpack(__sd_u: &mut Unpacker<'_>) -> Option<DimensionDef>
fn shape() -> Shape
fn read(v: &ValueRef<'_>, cx: &mut Reader<'_>) -> Option<DimensionDef>
fn write(&self) -> Value
Source§impl Schema for DimensionTypeProps
impl Schema for DimensionTypeProps
fn encode(&self, __sd_w: &mut Writer)
fn write_text(&self, __sd_w: &mut Writer)
fn pack(&self, __sd_p: &mut Packer)
fn unpack(__sd_u: &mut Unpacker<'_>) -> Option<DimensionTypeProps>
fn shape() -> Shape
fn read(v: &ValueRef<'_>, cx: &mut Reader<'_>) -> Option<DimensionTypeProps>
fn write(&self) -> Value
Source§impl Schema for Display
impl Schema for Display
fn encode(&self, __sd_w: &mut Writer)
fn write_text(&self, __sd_w: &mut Writer)
fn decode(__sd_d: &mut Decoder<'_>) -> Option<Display>
fn pack(&self, __sd_p: &mut Packer)
fn unpack(__sd_u: &mut Unpacker<'_>) -> Option<Display>
fn shape() -> Shape
fn read(v: &ValueRef<'_>, cx: &mut Reader<'_>) -> Option<Display>
fn write(&self) -> Value
Source§impl Schema for DropItem
impl Schema for DropItem
fn encode(&self, __sd_w: &mut Writer)
fn write_text(&self, __sd_w: &mut Writer)
fn decode(__sd_d: &mut Decoder<'_>) -> Option<DropItem>
fn pack(&self, __sd_p: &mut Packer)
fn unpack(__sd_u: &mut Unpacker<'_>) -> Option<DropItem>
fn shape() -> Shape
fn read(v: &ValueRef<'_>, cx: &mut Reader<'_>) -> Option<DropItem>
fn write(&self) -> Value
Source§impl Schema for Element
impl Schema for Element
fn encode(&self, __sd_w: &mut Writer)
fn write_text(&self, __sd_w: &mut Writer)
fn pack(&self, __sd_p: &mut Packer)
fn unpack(__sd_u: &mut Unpacker<'_>) -> Option<Element>
fn shape() -> Shape
fn read(v: &ValueRef<'_>, cx: &mut Reader<'_>) -> Option<Element>
fn write(&self) -> Value
Source§impl Schema for ElementRotation
impl Schema for ElementRotation
fn encode(&self, __sd_w: &mut Writer)
fn write_text(&self, __sd_w: &mut Writer)
fn pack(&self, __sd_p: &mut Packer)
fn unpack(__sd_u: &mut Unpacker<'_>) -> Option<ElementRotation>
fn shape() -> Shape
fn read(v: &ValueRef<'_>, cx: &mut Reader<'_>) -> Option<ElementRotation>
fn write(&self) -> Value
Source§impl Schema for EntryObject
impl Schema for EntryObject
fn encode(&self, __sd_w: &mut Writer)
fn write_text(&self, __sd_w: &mut Writer)
fn decode(__sd_d: &mut Decoder<'_>) -> Option<EntryObject>
fn pack(&self, __sd_p: &mut Packer)
fn unpack(__sd_u: &mut Unpacker<'_>) -> Option<EntryObject>
fn shape() -> Shape
fn read(v: &ValueRef<'_>, cx: &mut Reader<'_>) -> Option<EntryObject>
fn write(&self) -> Value
Source§impl Schema for ExternalSection
impl Schema for ExternalSection
fn encode(&self, __sd_w: &mut Writer)
fn write_text(&self, __sd_w: &mut Writer)
fn decode(__sd_d: &mut Decoder<'_>) -> Option<ExternalSection>
fn pack(&self, __sd_p: &mut Packer)
fn unpack(__sd_u: &mut Unpacker<'_>) -> Option<ExternalSection>
fn shape() -> Shape
fn read(v: &ValueRef<'_>, cx: &mut Reader<'_>) -> Option<ExternalSection>
fn write(&self) -> Value
Source§impl Schema for Face
impl Schema for Face
fn encode(&self, __sd_w: &mut Writer)
fn write_text(&self, __sd_w: &mut Writer)
fn pack(&self, __sd_p: &mut Packer)
fn unpack(__sd_u: &mut Unpacker<'_>) -> Option<Face>
fn shape() -> Shape
fn read(v: &ValueRef<'_>, cx: &mut Reader<'_>) -> Option<Face>
fn write(&self) -> Value
Source§impl Schema for Faces
impl Schema for Faces
fn encode(&self, __sd_w: &mut Writer)
fn write_text(&self, __sd_w: &mut Writer)
fn decode(__sd_d: &mut Decoder<'_>) -> Option<Faces>
fn pack(&self, __sd_p: &mut Packer)
fn unpack(__sd_u: &mut Unpacker<'_>) -> Option<Faces>
fn shape() -> Shape
fn read(v: &ValueRef<'_>, cx: &mut Reader<'_>) -> Option<Faces>
fn write(&self) -> Value
Source§impl Schema for Fill
impl Schema for Fill
fn encode(&self, __sd_w: &mut Writer)
fn write_text(&self, __sd_w: &mut Writer)
fn decode(__sd_d: &mut Decoder<'_>) -> Option<Fill>
fn pack(&self, __sd_p: &mut Packer)
fn unpack(__sd_u: &mut Unpacker<'_>) -> Option<Fill>
fn shape() -> Shape
fn read(v: &ValueRef<'_>, cx: &mut Reader<'_>) -> Option<Fill>
fn write(&self) -> Value
Source§impl Schema for Fit
impl Schema for Fit
fn encode(&self, __sd_w: &mut Writer)
fn write_text(&self, __sd_w: &mut Writer)
fn decode(__sd_d: &mut Decoder<'_>) -> Option<Fit>
fn pack(&self, __sd_p: &mut Packer)
fn unpack(__sd_u: &mut Unpacker<'_>) -> Option<Fit>
fn shape() -> Shape
fn read(v: &ValueRef<'_>, cx: &mut Reader<'_>) -> Option<Fit>
fn write(&self) -> Value
Source§impl Schema for Fluid
impl Schema for Fluid
fn encode(&self, __sd_w: &mut Writer)
fn write_text(&self, __sd_w: &mut Writer)
fn decode(__sd_d: &mut Decoder<'_>) -> Option<Fluid>
fn pack(&self, __sd_p: &mut Packer)
fn unpack(__sd_u: &mut Unpacker<'_>) -> Option<Fluid>
fn shape() -> Shape
fn read(v: &ValueRef<'_>, cx: &mut Reader<'_>) -> Option<Fluid>
fn write(&self) -> Value
Source§impl Schema for Font
impl Schema for Font
fn encode(&self, __sd_w: &mut Writer)
fn write_text(&self, __sd_w: &mut Writer)
fn decode(__sd_d: &mut Decoder<'_>) -> Option<Font>
fn pack(&self, __sd_p: &mut Packer)
fn unpack(__sd_u: &mut Unpacker<'_>) -> Option<Font>
fn shape() -> Shape
fn read(v: &ValueRef<'_>, cx: &mut Reader<'_>) -> Option<Font>
fn write(&self) -> Value
Source§impl Schema for Food
impl Schema for Food
fn encode(&self, __sd_w: &mut Writer)
fn write_text(&self, __sd_w: &mut Writer)
fn pack(&self, __sd_p: &mut Packer)
fn unpack(__sd_u: &mut Unpacker<'_>) -> Option<Food>
fn shape() -> Shape
fn read(v: &ValueRef<'_>, cx: &mut Reader<'_>) -> Option<Food>
fn write(&self) -> Value
Source§impl Schema for Frame
impl Schema for Frame
fn encode(&self, __sd_w: &mut Writer)
fn write_text(&self, __sd_w: &mut Writer)
fn decode(__sd_d: &mut Decoder<'_>) -> Option<Frame>
fn pack(&self, __sd_p: &mut Packer)
fn unpack(__sd_u: &mut Unpacker<'_>) -> Option<Frame>
fn shape() -> Shape
fn read(v: &ValueRef<'_>, cx: &mut Reader<'_>) -> Option<Frame>
fn write(&self) -> Value
Source§impl Schema for Glyph
impl Schema for Glyph
fn encode(&self, __sd_w: &mut Writer)
fn write_text(&self, __sd_w: &mut Writer)
fn decode(__sd_d: &mut Decoder<'_>) -> Option<Glyph>
fn pack(&self, __sd_p: &mut Packer)
fn unpack(__sd_u: &mut Unpacker<'_>) -> Option<Glyph>
fn shape() -> Shape
fn read(v: &ValueRef<'_>, cx: &mut Reader<'_>) -> Option<Glyph>
fn write(&self) -> Value
Source§impl Schema for GlyphClass
impl Schema for GlyphClass
fn encode(&self, __sd_w: &mut Writer)
fn write_text(&self, __sd_w: &mut Writer)
fn decode(__sd_d: &mut Decoder<'_>) -> Option<GlyphClass>
fn pack(&self, __sd_p: &mut Packer)
fn unpack(__sd_u: &mut Unpacker<'_>) -> Option<GlyphClass>
fn shape() -> Shape
fn read(v: &ValueRef<'_>, cx: &mut Reader<'_>) -> Option<GlyphClass>
fn write(&self) -> Value
Source§impl Schema for GuiLight
impl Schema for GuiLight
fn shape() -> Shape
fn pack(&self, p: &mut Packer)
fn unpack(u: &mut Unpacker<'_>) -> Option<GuiLight>
fn read(v: &ValueRef<'_>, cx: &mut Reader<'_>) -> Option<GuiLight>
fn write(&self) -> Value
fn encode(&self, w: &mut Writer)
fn write_text(&self, w: &mut Writer)
fn decode(d: &mut Decoder<'_>) -> Option<GuiLight>
Source§impl Schema for HangsProps
impl Schema for HangsProps
fn encode(&self, __sd_w: &mut Writer)
fn write_text(&self, __sd_w: &mut Writer)
fn decode(__sd_d: &mut Decoder<'_>) -> Option<HangsProps>
fn pack(&self, __sd_p: &mut Packer)
fn unpack(__sd_u: &mut Unpacker<'_>) -> Option<HangsProps>
fn shape() -> Shape
fn read(v: &ValueRef<'_>, cx: &mut Reader<'_>) -> Option<HangsProps>
fn write(&self) -> Value
Source§impl Schema for HeightShape
impl Schema for HeightShape
fn shape() -> Shape
fn pack(&self, p: &mut Packer)
fn unpack(u: &mut Unpacker<'_>) -> Option<HeightShape>
fn read(v: &ValueRef<'_>, cx: &mut Reader<'_>) -> Option<HeightShape>
fn write(&self) -> Value
fn encode(&self, w: &mut Writer)
fn write_text(&self, w: &mut Writer)
fn decode(d: &mut Decoder<'_>) -> Option<HeightShape>
Source§impl Schema for Image
impl Schema for Image
fn shape() -> Shape
fn read(v: &ValueRef<'_>, cx: &mut Reader<'_>) -> Option<Image>
fn write(&self) -> Value
fn encode(&self, w: &mut Writer)
fn decode(d: &mut Decoder<'_>) -> Option<Image>
fn pack(&self, p: &mut Packer)
fn unpack(u: &mut Unpacker<'_>) -> Option<Image>
Source§impl Schema for Image
impl Schema for Image
fn encode(&self, __sd_w: &mut Writer)
fn write_text(&self, __sd_w: &mut Writer)
fn decode(__sd_d: &mut Decoder<'_>) -> Option<Image>
fn pack(&self, __sd_p: &mut Packer)
fn unpack(__sd_u: &mut Unpacker<'_>) -> Option<Image>
fn shape() -> Shape
fn read(v: &ValueRef<'_>, cx: &mut Reader<'_>) -> Option<Image>
fn write(&self) -> Value
Source§impl Schema for ImageOp
impl Schema for ImageOp
fn encode(&self, __sd_w: &mut Writer)
fn write_text(&self, __sd_w: &mut Writer)
fn decode(__sd_d: &mut Decoder<'_>) -> Option<ImageOp>
fn pack(&self, __sd_p: &mut Packer)
fn unpack(__sd_u: &mut Unpacker<'_>) -> Option<ImageOp>
fn shape() -> Shape
fn read(v: &ValueRef<'_>, cx: &mut Reader<'_>) -> Option<ImageOp>
fn write(&self) -> Value
Source§impl Schema for ItemFile
impl Schema for ItemFile
fn encode(&self, __sd_w: &mut Writer)
fn write_text(&self, __sd_w: &mut Writer)
fn decode(__sd_d: &mut Decoder<'_>) -> Option<ItemFile>
fn pack(&self, __sd_p: &mut Packer)
fn unpack(__sd_u: &mut Unpacker<'_>) -> Option<ItemFile>
fn shape() -> Shape
fn read(v: &ValueRef<'_>, cx: &mut Reader<'_>) -> Option<ItemFile>
fn write(&self) -> Value
Source§impl Schema for ItemProps
impl Schema for ItemProps
fn encode(&self, __sd_w: &mut Writer)
fn write_text(&self, __sd_w: &mut Writer)
fn pack(&self, __sd_p: &mut Packer)
fn unpack(__sd_u: &mut Unpacker<'_>) -> Option<ItemProps>
fn shape() -> Shape
fn read(v: &ValueRef<'_>, cx: &mut Reader<'_>) -> Option<ItemProps>
fn write(&self) -> Value
Source§impl Schema for Kern
impl Schema for Kern
fn encode(&self, __sd_w: &mut Writer)
fn write_text(&self, __sd_w: &mut Writer)
fn decode(__sd_d: &mut Decoder<'_>) -> Option<Kern>
fn pack(&self, __sd_p: &mut Packer)
fn unpack(__sd_u: &mut Unpacker<'_>) -> Option<Kern>
fn shape() -> Shape
fn read(v: &ValueRef<'_>, cx: &mut Reader<'_>) -> Option<Kern>
fn write(&self) -> Value
Source§impl Schema for Kind
impl Schema for Kind
fn shape() -> Shape
fn pack(&self, p: &mut Packer)
fn unpack(u: &mut Unpacker<'_>) -> Option<Kind>
fn read(v: &ValueRef<'_>, cx: &mut Reader<'_>) -> Option<Kind>
fn write(&self) -> Value
fn encode(&self, w: &mut Writer)
fn write_text(&self, w: &mut Writer)
fn decode(d: &mut Decoder<'_>) -> Option<Kind>
Source§impl Schema for KindModel
impl Schema for KindModel
fn encode(&self, __sd_w: &mut Writer)
fn write_text(&self, __sd_w: &mut Writer)
fn decode(__sd_d: &mut Decoder<'_>) -> Option<KindModel>
fn pack(&self, __sd_p: &mut Packer)
fn unpack(__sd_u: &mut Unpacker<'_>) -> Option<KindModel>
fn shape() -> Shape
fn read(v: &ValueRef<'_>, cx: &mut Reader<'_>) -> Option<KindModel>
fn write(&self) -> Value
Source§impl Schema for KindPart
impl Schema for KindPart
fn encode(&self, __sd_w: &mut Writer)
fn write_text(&self, __sd_w: &mut Writer)
fn decode(__sd_d: &mut Decoder<'_>) -> Option<KindPart>
fn pack(&self, __sd_p: &mut Packer)
fn unpack(__sd_u: &mut Unpacker<'_>) -> Option<KindPart>
fn shape() -> Shape
fn read(v: &ValueRef<'_>, cx: &mut Reader<'_>) -> Option<KindPart>
fn write(&self) -> Value
Source§impl Schema for Language
impl Schema for Language
fn shape() -> Shape
fn pack(&self, p: &mut Packer)
fn unpack(u: &mut Unpacker<'_>) -> Option<Language>
fn read(v: &ValueRef<'_>, cx: &mut Reader<'_>) -> Option<Language>
fn write(&self) -> Value
fn encode(&self, w: &mut Writer)
fn write_text(&self, w: &mut Writer)
fn decode(d: &mut Decoder<'_>) -> Option<Language>
Source§impl Schema for Ligature
impl Schema for Ligature
fn encode(&self, __sd_w: &mut Writer)
fn write_text(&self, __sd_w: &mut Writer)
fn decode(__sd_d: &mut Decoder<'_>) -> Option<Ligature>
fn pack(&self, __sd_p: &mut Packer)
fn unpack(__sd_u: &mut Unpacker<'_>) -> Option<Ligature>
fn shape() -> Shape
fn read(v: &ValueRef<'_>, cx: &mut Reader<'_>) -> Option<Ligature>
fn write(&self) -> Value
Source§impl Schema for LootTableDef
impl Schema for LootTableDef
fn encode(&self, __sd_w: &mut Writer)
fn write_text(&self, __sd_w: &mut Writer)
fn decode(__sd_d: &mut Decoder<'_>) -> Option<LootTableDef>
fn pack(&self, __sd_p: &mut Packer)
fn unpack(__sd_u: &mut Unpacker<'_>) -> Option<LootTableDef>
fn shape() -> Shape
fn read(v: &ValueRef<'_>, cx: &mut Reader<'_>) -> Option<LootTableDef>
fn write(&self) -> Value
Source§impl Schema for Machine
impl Schema for Machine
fn encode(&self, __sd_w: &mut Writer)
fn write_text(&self, __sd_w: &mut Writer)
fn decode(__sd_d: &mut Decoder<'_>) -> Option<Machine>
fn pack(&self, __sd_p: &mut Packer)
fn unpack(__sd_u: &mut Unpacker<'_>) -> Option<Machine>
fn shape() -> Shape
fn read(v: &ValueRef<'_>, cx: &mut Reader<'_>) -> Option<Machine>
fn write(&self) -> Value
Source§impl Schema for ManifestFile
impl Schema for ManifestFile
fn encode(&self, __sd_w: &mut Writer)
fn write_text(&self, __sd_w: &mut Writer)
fn decode(__sd_d: &mut Decoder<'_>) -> Option<ManifestFile>
fn pack(&self, __sd_p: &mut Packer)
fn unpack(__sd_u: &mut Unpacker<'_>) -> Option<ManifestFile>
fn shape() -> Shape
fn read(v: &ValueRef<'_>, cx: &mut Reader<'_>) -> Option<ManifestFile>
fn write(&self) -> Value
Source§impl Schema for Mask
impl Schema for Mask
fn encode(&self, __sd_w: &mut Writer)
fn write_text(&self, __sd_w: &mut Writer)
fn decode(__sd_d: &mut Decoder<'_>) -> Option<Mask>
fn pack(&self, __sd_p: &mut Packer)
fn unpack(__sd_u: &mut Unpacker<'_>) -> Option<Mask>
fn shape() -> Shape
fn read(v: &ValueRef<'_>, cx: &mut Reader<'_>) -> Option<Mask>
fn write(&self) -> Value
Source§impl Schema for MaskOp
impl Schema for MaskOp
fn encode(&self, __sd_w: &mut Writer)
fn write_text(&self, __sd_w: &mut Writer)
fn decode(__sd_d: &mut Decoder<'_>) -> Option<MaskOp>
fn pack(&self, __sd_p: &mut Packer)
fn unpack(__sd_u: &mut Unpacker<'_>) -> Option<MaskOp>
fn shape() -> Shape
fn read(v: &ValueRef<'_>, cx: &mut Reader<'_>) -> Option<MaskOp>
fn write(&self) -> Value
Source§impl Schema for MaterialFile
impl Schema for MaterialFile
fn encode(&self, __sd_w: &mut Writer)
fn write_text(&self, __sd_w: &mut Writer)
fn decode(__sd_d: &mut Decoder<'_>) -> Option<MaterialFile>
fn pack(&self, __sd_p: &mut Packer)
fn unpack(__sd_u: &mut Unpacker<'_>) -> Option<MaterialFile>
fn shape() -> Shape
fn read(v: &ValueRef<'_>, cx: &mut Reader<'_>) -> Option<MaterialFile>
fn write(&self) -> Value
Source§impl Schema for Mix
impl Schema for Mix
fn encode(&self, __sd_w: &mut Writer)
fn write_text(&self, __sd_w: &mut Writer)
fn decode(__sd_d: &mut Decoder<'_>) -> Option<Mix>
fn pack(&self, __sd_p: &mut Packer)
fn unpack(__sd_u: &mut Unpacker<'_>) -> Option<Mix>
fn shape() -> Shape
fn read(v: &ValueRef<'_>, cx: &mut Reader<'_>) -> Option<Mix>
fn write(&self) -> Value
Source§impl Schema for ModSection
impl Schema for ModSection
fn encode(&self, __sd_w: &mut Writer)
fn write_text(&self, __sd_w: &mut Writer)
fn decode(__sd_d: &mut Decoder<'_>) -> Option<ModSection>
fn pack(&self, __sd_p: &mut Packer)
fn unpack(__sd_u: &mut Unpacker<'_>) -> Option<ModSection>
fn shape() -> Shape
fn read(v: &ValueRef<'_>, cx: &mut Reader<'_>) -> Option<ModSection>
fn write(&self) -> Value
Source§impl Schema for Model
impl Schema for Model
fn encode(&self, __sd_w: &mut Writer)
fn write_text(&self, __sd_w: &mut Writer)
fn decode(__sd_d: &mut Decoder<'_>) -> Option<Model>
fn pack(&self, __sd_p: &mut Packer)
fn unpack(__sd_u: &mut Unpacker<'_>) -> Option<Model>
fn shape() -> Shape
fn read(v: &ValueRef<'_>, cx: &mut Reader<'_>) -> Option<Model>
fn write(&self) -> Value
Source§impl Schema for Montage
impl Schema for Montage
fn encode(&self, __sd_w: &mut Writer)
fn write_text(&self, __sd_w: &mut Writer)
fn decode(__sd_d: &mut Decoder<'_>) -> Option<Montage>
fn pack(&self, __sd_p: &mut Packer)
fn unpack(__sd_u: &mut Unpacker<'_>) -> Option<Montage>
fn shape() -> Shape
fn read(v: &ValueRef<'_>, cx: &mut Reader<'_>) -> Option<Montage>
fn write(&self) -> Value
Source§impl Schema for NetworkSection
impl Schema for NetworkSection
fn encode(&self, __sd_w: &mut Writer)
fn write_text(&self, __sd_w: &mut Writer)
fn decode(__sd_d: &mut Decoder<'_>) -> Option<NetworkSection>
fn pack(&self, __sd_p: &mut Packer)
fn unpack(__sd_u: &mut Unpacker<'_>) -> Option<NetworkSection>
fn shape() -> Shape
fn read(v: &ValueRef<'_>, cx: &mut Reader<'_>) -> Option<NetworkSection>
fn write(&self) -> Value
Source§impl Schema for NoiseLayer
impl Schema for NoiseLayer
fn encode(&self, __sd_w: &mut Writer)
fn write_text(&self, __sd_w: &mut Writer)
fn pack(&self, __sd_p: &mut Packer)
fn unpack(__sd_u: &mut Unpacker<'_>) -> Option<NoiseLayer>
fn shape() -> Shape
fn read(v: &ValueRef<'_>, cx: &mut Reader<'_>) -> Option<NoiseLayer>
fn write(&self) -> Value
Source§impl Schema for OreDef
impl Schema for OreDef
fn encode(&self, __sd_w: &mut Writer)
fn write_text(&self, __sd_w: &mut Writer)
fn pack(&self, __sd_p: &mut Packer)
fn unpack(__sd_u: &mut Unpacker<'_>) -> Option<OreDef>
fn shape() -> Shape
fn read(v: &ValueRef<'_>, cx: &mut Reader<'_>) -> Option<OreDef>
fn write(&self) -> Value
Source§impl Schema for OreHeight
impl Schema for OreHeight
fn encode(&self, __sd_w: &mut Writer)
fn write_text(&self, __sd_w: &mut Writer)
fn decode(__sd_d: &mut Decoder<'_>) -> Option<OreHeight>
fn pack(&self, __sd_p: &mut Packer)
fn unpack(__sd_u: &mut Unpacker<'_>) -> Option<OreHeight>
fn shape() -> Shape
fn read(v: &ValueRef<'_>, cx: &mut Reader<'_>) -> Option<OreHeight>
fn write(&self) -> Value
Source§impl Schema for OreTarget
impl Schema for OreTarget
fn encode(&self, __sd_w: &mut Writer)
fn write_text(&self, __sd_w: &mut Writer)
fn decode(__sd_d: &mut Decoder<'_>) -> Option<OreTarget>
fn pack(&self, __sd_p: &mut Packer)
fn unpack(__sd_u: &mut Unpacker<'_>) -> Option<OreTarget>
fn shape() -> Shape
fn read(v: &ValueRef<'_>, cx: &mut Reader<'_>) -> Option<OreTarget>
fn write(&self) -> Value
Source§impl Schema for PathBuf
A file’s path, as text (a path that isn’t Unicode loses what isn’t).
impl Schema for PathBuf
A file’s path, as text (a path that isn’t Unicode loses what isn’t).
fn shape() -> Shape
fn read(v: &ValueRef<'_>, cx: &mut Reader<'_>) -> Option<PathBuf>
fn write(&self) -> Value
fn write_text(&self, w: &mut Writer)
fn encode(&self, w: &mut Writer)
fn decode(d: &mut Decoder<'_>) -> Option<PathBuf>
fn pack(&self, p: &mut Packer)
fn unpack(u: &mut Unpacker<'_>) -> Option<PathBuf>
Source§impl Schema for PictureClip
impl Schema for PictureClip
fn encode(&self, __sd_w: &mut Writer)
fn write_text(&self, __sd_w: &mut Writer)
fn decode(__sd_d: &mut Decoder<'_>) -> Option<PictureClip>
fn pack(&self, __sd_p: &mut Packer)
fn unpack(__sd_u: &mut Unpacker<'_>) -> Option<PictureClip>
fn shape() -> Shape
fn read(v: &ValueRef<'_>, cx: &mut Reader<'_>) -> Option<PictureClip>
fn write(&self) -> Value
Source§impl Schema for PictureTrack
impl Schema for PictureTrack
fn encode(&self, __sd_w: &mut Writer)
fn write_text(&self, __sd_w: &mut Writer)
fn decode(__sd_d: &mut Decoder<'_>) -> Option<PictureTrack>
fn pack(&self, __sd_p: &mut Packer)
fn unpack(__sd_u: &mut Unpacker<'_>) -> Option<PictureTrack>
fn shape() -> Shape
fn read(v: &ValueRef<'_>, cx: &mut Reader<'_>) -> Option<PictureTrack>
fn write(&self) -> Value
Source§impl Schema for PotionProps
impl Schema for PotionProps
fn encode(&self, __sd_w: &mut Writer)
fn write_text(&self, __sd_w: &mut Writer)
fn decode(__sd_d: &mut Decoder<'_>) -> Option<PotionProps>
fn pack(&self, __sd_p: &mut Packer)
fn unpack(__sd_u: &mut Unpacker<'_>) -> Option<PotionProps>
fn shape() -> Shape
fn read(v: &ValueRef<'_>, cx: &mut Reader<'_>) -> Option<PotionProps>
fn write(&self) -> Value
Source§impl Schema for RecipeFile
impl Schema for RecipeFile
Source§impl Schema for Register
impl Schema for Register
fn shape() -> Shape
fn pack(&self, p: &mut Packer)
fn unpack(u: &mut Unpacker<'_>) -> Option<Register>
fn read(v: &ValueRef<'_>, cx: &mut Reader<'_>) -> Option<Register>
fn write(&self) -> Value
fn encode(&self, w: &mut Writer)
fn write_text(&self, w: &mut Writer)
fn decode(d: &mut Decoder<'_>) -> Option<Register>
Source§impl Schema for RenderLayer
impl Schema for RenderLayer
fn shape() -> Shape
fn pack(&self, p: &mut Packer)
fn unpack(u: &mut Unpacker<'_>) -> Option<RenderLayer>
fn read(v: &ValueRef<'_>, cx: &mut Reader<'_>) -> Option<RenderLayer>
fn write(&self) -> Value
fn encode(&self, w: &mut Writer)
fn write_text(&self, w: &mut Writer)
fn decode(d: &mut Decoder<'_>) -> Option<RenderLayer>
Source§impl Schema for Rotation
impl Schema for Rotation
fn encode(&self, __sd_w: &mut Writer)
fn write_text(&self, __sd_w: &mut Writer)
fn pack(&self, __sd_p: &mut Packer)
fn unpack(__sd_u: &mut Unpacker<'_>) -> Option<Rotation>
fn shape() -> Shape
fn read(v: &ValueRef<'_>, cx: &mut Reader<'_>) -> Option<Rotation>
fn write(&self) -> Value
Source§impl Schema for SendToServer
impl Schema for SendToServer
fn encode(&self, __sd_w: &mut Writer)
fn write_text(&self, __sd_w: &mut Writer)
fn decode(__sd_d: &mut Decoder<'_>) -> Option<SendToServer>
fn pack(&self, __sd_p: &mut Packer)
fn unpack(__sd_u: &mut Unpacker<'_>) -> Option<SendToServer>
fn shape() -> Shape
fn read(v: &ValueRef<'_>, cx: &mut Reader<'_>) -> Option<SendToServer>
fn write(&self) -> Value
Source§impl Schema for Shaped
impl Schema for Shaped
fn encode(&self, __sd_w: &mut Writer)
fn write_text(&self, __sd_w: &mut Writer)
fn decode(__sd_d: &mut Decoder<'_>) -> Option<Shaped>
fn pack(&self, __sd_p: &mut Packer)
fn unpack(__sd_u: &mut Unpacker<'_>) -> Option<Shaped>
fn shape() -> Shape
fn read(v: &ValueRef<'_>, cx: &mut Reader<'_>) -> Option<Shaped>
fn write(&self) -> Value
Source§impl Schema for Shapeless
impl Schema for Shapeless
fn encode(&self, __sd_w: &mut Writer)
fn write_text(&self, __sd_w: &mut Writer)
fn decode(__sd_d: &mut Decoder<'_>) -> Option<Shapeless>
fn pack(&self, __sd_p: &mut Packer)
fn unpack(__sd_u: &mut Unpacker<'_>) -> Option<Shapeless>
fn shape() -> Shape
fn read(v: &ValueRef<'_>, cx: &mut Reader<'_>) -> Option<Shapeless>
fn write(&self) -> Value
Source§impl Schema for Smithing
impl Schema for Smithing
fn encode(&self, __sd_w: &mut Writer)
fn write_text(&self, __sd_w: &mut Writer)
fn decode(__sd_d: &mut Decoder<'_>) -> Option<Smithing>
fn pack(&self, __sd_p: &mut Packer)
fn unpack(__sd_u: &mut Unpacker<'_>) -> Option<Smithing>
fn shape() -> Shape
fn read(v: &ValueRef<'_>, cx: &mut Reader<'_>) -> Option<Smithing>
fn write(&self) -> Value
Source§impl Schema for SoundClip
impl Schema for SoundClip
fn encode(&self, __sd_w: &mut Writer)
fn write_text(&self, __sd_w: &mut Writer)
fn decode(__sd_d: &mut Decoder<'_>) -> Option<SoundClip>
fn pack(&self, __sd_p: &mut Packer)
fn unpack(__sd_u: &mut Unpacker<'_>) -> Option<SoundClip>
fn shape() -> Shape
fn read(v: &ValueRef<'_>, cx: &mut Reader<'_>) -> Option<SoundClip>
fn write(&self) -> Value
Source§impl Schema for SoundEffect
impl Schema for SoundEffect
Source§impl Schema for SoundFile
impl Schema for SoundFile
fn encode(&self, __sd_w: &mut Writer)
fn write_text(&self, __sd_w: &mut Writer)
fn decode(__sd_d: &mut Decoder<'_>) -> Option<SoundFile>
fn pack(&self, __sd_p: &mut Packer)
fn unpack(__sd_u: &mut Unpacker<'_>) -> Option<SoundFile>
fn shape() -> Shape
fn read(v: &ValueRef<'_>, cx: &mut Reader<'_>) -> Option<SoundFile>
fn write(&self) -> Value
Source§impl Schema for States
impl Schema for States
fn encode(&self, __sd_w: &mut Writer)
fn write_text(&self, __sd_w: &mut Writer)
fn decode(__sd_d: &mut Decoder<'_>) -> Option<States>
fn pack(&self, __sd_p: &mut Packer)
fn unpack(__sd_u: &mut Unpacker<'_>) -> Option<States>
fn shape() -> Shape
fn read(v: &ValueRef<'_>, cx: &mut Reader<'_>) -> Option<States>
fn write(&self) -> Value
Source§impl Schema for Stonecutting
impl Schema for Stonecutting
fn encode(&self, __sd_w: &mut Writer)
fn write_text(&self, __sd_w: &mut Writer)
fn decode(__sd_d: &mut Decoder<'_>) -> Option<Stonecutting>
fn pack(&self, __sd_p: &mut Packer)
fn unpack(__sd_u: &mut Unpacker<'_>) -> Option<Stonecutting>
fn shape() -> Shape
fn read(v: &ValueRef<'_>, cx: &mut Reader<'_>) -> Option<Stonecutting>
fn write(&self) -> Value
Source§impl Schema for String
impl Schema for String
fn shape() -> Shape
fn read(v: &ValueRef<'_>, cx: &mut Reader<'_>) -> Option<String>
fn write(&self) -> Value
fn write_text(&self, w: &mut Writer)
fn encode(&self, w: &mut Writer)
fn decode(d: &mut Decoder<'_>) -> Option<String>
fn pack(&self, p: &mut Packer)
fn unpack(u: &mut Unpacker<'_>) -> Option<String>
Source§impl Schema for Stroke
impl Schema for Stroke
fn encode(&self, __sd_w: &mut Writer)
fn write_text(&self, __sd_w: &mut Writer)
fn decode(__sd_d: &mut Decoder<'_>) -> Option<Stroke>
fn pack(&self, __sd_p: &mut Packer)
fn unpack(__sd_u: &mut Unpacker<'_>) -> Option<Stroke>
fn shape() -> Shape
fn read(v: &ValueRef<'_>, cx: &mut Reader<'_>) -> Option<Stroke>
fn write(&self) -> Value
Source§impl Schema for SurfaceLayer
impl Schema for SurfaceLayer
fn encode(&self, __sd_w: &mut Writer)
fn write_text(&self, __sd_w: &mut Writer)
fn pack(&self, __sd_p: &mut Packer)
fn unpack(__sd_u: &mut Unpacker<'_>) -> Option<SurfaceLayer>
fn shape() -> Shape
fn read(v: &ValueRef<'_>, cx: &mut Reader<'_>) -> Option<SurfaceLayer>
fn write(&self) -> Value
Source§impl Schema for TableDef
impl Schema for TableDef
fn encode(&self, __sd_w: &mut Writer)
fn write_text(&self, __sd_w: &mut Writer)
fn decode(__sd_d: &mut Decoder<'_>) -> Option<TableDef>
fn pack(&self, __sd_p: &mut Packer)
fn unpack(__sd_u: &mut Unpacker<'_>) -> Option<TableDef>
fn shape() -> Shape
fn read(v: &ValueRef<'_>, cx: &mut Reader<'_>) -> Option<TableDef>
fn write(&self) -> Value
Source§impl Schema for TagDef
impl Schema for TagDef
fn encode(&self, __sd_w: &mut Writer)
fn write_text(&self, __sd_w: &mut Writer)
fn decode(__sd_d: &mut Decoder<'_>) -> Option<TagDef>
fn pack(&self, __sd_p: &mut Packer)
fn unpack(__sd_u: &mut Unpacker<'_>) -> Option<TagDef>
fn shape() -> Shape
fn read(v: &ValueRef<'_>, cx: &mut Reader<'_>) -> Option<TagDef>
fn write(&self) -> Value
Source§impl Schema for Terrain
impl Schema for Terrain
fn encode(&self, __sd_w: &mut Writer)
fn write_text(&self, __sd_w: &mut Writer)
fn decode(__sd_d: &mut Decoder<'_>) -> Option<Terrain>
fn pack(&self, __sd_p: &mut Packer)
fn unpack(__sd_u: &mut Unpacker<'_>) -> Option<Terrain>
fn shape() -> Shape
fn read(v: &ValueRef<'_>, cx: &mut Reader<'_>) -> Option<Terrain>
fn write(&self) -> Value
Source§impl Schema for TerrainOre
impl Schema for TerrainOre
fn encode(&self, __sd_w: &mut Writer)
fn write_text(&self, __sd_w: &mut Writer)
fn pack(&self, __sd_p: &mut Packer)
fn unpack(__sd_u: &mut Unpacker<'_>) -> Option<TerrainOre>
fn shape() -> Shape
fn read(v: &ValueRef<'_>, cx: &mut Reader<'_>) -> Option<TerrainOre>
fn write(&self) -> Value
Source§impl Schema for Text
Read as its reference when it’s one, so a tool sees every reference a
text makes; every other form is its stored form’s.
impl Schema for Text
Read as its reference when it’s one, so a tool sees every reference a text makes; every other form is its stored form’s.
fn shape() -> Shape
fn read(v: &ValueRef<'_>, cx: &mut Reader<'_>) -> Option<Text>
fn write(&self) -> Value
fn encode(&self, w: &mut Writer)
fn decode(d: &mut Decoder<'_>) -> Option<Text>
fn pack(&self, p: &mut Packer)
fn unpack(u: &mut Unpacker<'_>) -> Option<Text>
Source§impl Schema for TextureFile
impl Schema for TextureFile
fn encode(&self, __sd_w: &mut Writer)
fn write_text(&self, __sd_w: &mut Writer)
fn decode(__sd_d: &mut Decoder<'_>) -> Option<TextureFile>
fn pack(&self, __sd_p: &mut Packer)
fn unpack(__sd_u: &mut Unpacker<'_>) -> Option<TextureFile>
fn shape() -> Shape
fn read(v: &ValueRef<'_>, cx: &mut Reader<'_>) -> Option<TextureFile>
fn write(&self) -> Value
Source§impl Schema for ToolMaterialDef
impl Schema for ToolMaterialDef
fn encode(&self, __sd_w: &mut Writer)
fn write_text(&self, __sd_w: &mut Writer)
fn pack(&self, __sd_p: &mut Packer)
fn unpack(__sd_u: &mut Unpacker<'_>) -> Option<ToolMaterialDef>
fn shape() -> Shape
fn read(v: &ValueRef<'_>, cx: &mut Reader<'_>) -> Option<ToolMaterialDef>
fn write(&self) -> Value
Source§impl Schema for ToolProps
impl Schema for ToolProps
fn encode(&self, __sd_w: &mut Writer)
fn write_text(&self, __sd_w: &mut Writer)
fn decode(__sd_d: &mut Decoder<'_>) -> Option<ToolProps>
fn pack(&self, __sd_p: &mut Packer)
fn unpack(__sd_u: &mut Unpacker<'_>) -> Option<ToolProps>
fn shape() -> Shape
fn read(v: &ValueRef<'_>, cx: &mut Reader<'_>) -> Option<ToolProps>
fn write(&self) -> Value
Source§impl Schema for Track
impl Schema for Track
fn encode(&self, __sd_w: &mut Writer)
fn write_text(&self, __sd_w: &mut Writer)
fn decode(__sd_d: &mut Decoder<'_>) -> Option<Track>
fn pack(&self, __sd_p: &mut Packer)
fn unpack(__sd_u: &mut Unpacker<'_>) -> Option<Track>
fn shape() -> Shape
fn read(v: &ValueRef<'_>, cx: &mut Reader<'_>) -> Option<Track>
fn write(&self) -> Value
Source§impl Schema for Transform
impl Schema for Transform
fn encode(&self, __sd_w: &mut Writer)
fn write_text(&self, __sd_w: &mut Writer)
fn pack(&self, __sd_p: &mut Packer)
fn unpack(__sd_u: &mut Unpacker<'_>) -> Option<Transform>
fn shape() -> Shape
fn read(v: &ValueRef<'_>, cx: &mut Reader<'_>) -> Option<Transform>
fn write(&self) -> Value
Source§impl Schema for Transition
impl Schema for Transition
fn encode(&self, __sd_w: &mut Writer)
fn write_text(&self, __sd_w: &mut Writer)
fn decode(__sd_d: &mut Decoder<'_>) -> Option<Transition>
fn pack(&self, __sd_p: &mut Packer)
fn unpack(__sd_u: &mut Unpacker<'_>) -> Option<Transition>
fn shape() -> Shape
fn read(v: &ValueRef<'_>, cx: &mut Reader<'_>) -> Option<Transition>
fn write(&self) -> Value
Source§impl Schema for TreeDef
impl Schema for TreeDef
fn encode(&self, __sd_w: &mut Writer)
fn write_text(&self, __sd_w: &mut Writer)
fn decode(__sd_d: &mut Decoder<'_>) -> Option<TreeDef>
fn pack(&self, __sd_p: &mut Packer)
fn unpack(__sd_u: &mut Unpacker<'_>) -> Option<TreeDef>
fn shape() -> Shape
fn read(v: &ValueRef<'_>, cx: &mut Reader<'_>) -> Option<TreeDef>
fn write(&self) -> Value
Source§impl Schema for TreeLeaves
impl Schema for TreeLeaves
fn encode(&self, __sd_w: &mut Writer)
fn write_text(&self, __sd_w: &mut Writer)
fn decode(__sd_d: &mut Decoder<'_>) -> Option<TreeLeaves>
fn pack(&self, __sd_p: &mut Packer)
fn unpack(__sd_u: &mut Unpacker<'_>) -> Option<TreeLeaves>
fn shape() -> Shape
fn read(v: &ValueRef<'_>, cx: &mut Reader<'_>) -> Option<TreeLeaves>
fn write(&self) -> Value
Source§impl Schema for TreeTrunk
impl Schema for TreeTrunk
fn encode(&self, __sd_w: &mut Writer)
fn write_text(&self, __sd_w: &mut Writer)
fn decode(__sd_d: &mut Decoder<'_>) -> Option<TreeTrunk>
fn pack(&self, __sd_p: &mut Packer)
fn unpack(__sd_u: &mut Unpacker<'_>) -> Option<TreeTrunk>
fn shape() -> Shape
fn read(v: &ValueRef<'_>, cx: &mut Reader<'_>) -> Option<TreeTrunk>
fn write(&self) -> Value
Source§impl Schema for TriggeredBy
impl Schema for TriggeredBy
fn shape() -> Shape
fn pack(&self, p: &mut Packer)
fn unpack(u: &mut Unpacker<'_>) -> Option<TriggeredBy>
fn read(v: &ValueRef<'_>, cx: &mut Reader<'_>) -> Option<TriggeredBy>
fn write(&self) -> Value
fn encode(&self, w: &mut Writer)
fn write_text(&self, w: &mut Writer)
fn decode(d: &mut Decoder<'_>) -> Option<TriggeredBy>
Source§impl Schema for Variant
impl Schema for Variant
fn encode(&self, __sd_w: &mut Writer)
fn write_text(&self, __sd_w: &mut Writer)
fn decode(__sd_d: &mut Decoder<'_>) -> Option<Variant>
fn pack(&self, __sd_p: &mut Packer)
fn unpack(__sd_u: &mut Unpacker<'_>) -> Option<Variant>
fn shape() -> Shape
fn read(v: &ValueRef<'_>, cx: &mut Reader<'_>) -> Option<Variant>
fn write(&self) -> Value
Source§impl Schema for Video
impl Schema for Video
fn encode(&self, __sd_w: &mut Writer)
fn write_text(&self, __sd_w: &mut Writer)
fn decode(__sd_d: &mut Decoder<'_>) -> Option<Video>
fn pack(&self, __sd_p: &mut Packer)
fn unpack(__sd_u: &mut Unpacker<'_>) -> Option<Video>
fn shape() -> Shape
fn read(v: &ValueRef<'_>, cx: &mut Reader<'_>) -> Option<Video>
fn write(&self) -> Value
Source§impl Schema for WeightedBlock
impl Schema for WeightedBlock
fn encode(&self, __sd_w: &mut Writer)
fn write_text(&self, __sd_w: &mut Writer)
fn decode(__sd_d: &mut Decoder<'_>) -> Option<WeightedBlock>
fn pack(&self, __sd_p: &mut Packer)
fn unpack(__sd_u: &mut Unpacker<'_>) -> Option<WeightedBlock>
fn shape() -> Shape
fn read(v: &ValueRef<'_>, cx: &mut Reader<'_>) -> Option<WeightedBlock>
fn write(&self) -> Value
Source§impl Schema for bool
impl Schema for bool
fn shape() -> Shape
fn read(v: &ValueRef<'_>, cx: &mut Reader<'_>) -> Option<bool>
fn write(&self) -> Value
fn encode(&self, w: &mut Writer)
fn write_text(&self, w: &mut Writer)
fn decode(d: &mut Decoder<'_>) -> Option<bool>
fn pack(&self, p: &mut Packer)
fn unpack(u: &mut Unpacker<'_>) -> Option<bool>
Source§impl Schema for f32
impl Schema for f32
fn shape() -> Shape
fn read(v: &ValueRef<'_>, cx: &mut Reader<'_>) -> Option<f32>
fn write(&self) -> Value
fn encode(&self, w: &mut Writer)
fn decode(d: &mut Decoder<'_>) -> Option<f32>
fn write_text(&self, w: &mut Writer)
fn encode_list(items: &[f32], w: &mut Writer)
fn decode_list(d: &mut Decoder<'_>) -> Option<Vec<f32>>
fn pack(&self, p: &mut Packer)
fn unpack(u: &mut Unpacker<'_>) -> Option<f32>
fn pack_list(items: &[f32], p: &mut Packer)
fn unpack_list(u: &mut Unpacker<'_>) -> Option<Vec<f32>>
Source§impl Schema for f64
impl Schema for f64
fn shape() -> Shape
fn read(v: &ValueRef<'_>, cx: &mut Reader<'_>) -> Option<f64>
fn write(&self) -> Value
fn encode(&self, w: &mut Writer)
fn decode(d: &mut Decoder<'_>) -> Option<f64>
fn write_text(&self, w: &mut Writer)
fn encode_list(items: &[f64], w: &mut Writer)
fn decode_list(d: &mut Decoder<'_>) -> Option<Vec<f64>>
fn pack(&self, p: &mut Packer)
fn unpack(u: &mut Unpacker<'_>) -> Option<f64>
fn pack_list(items: &[f64], p: &mut Packer)
fn unpack_list(u: &mut Unpacker<'_>) -> Option<Vec<f64>>
Source§impl Schema for i8
impl Schema for i8
fn shape() -> Shape
fn read(v: &ValueRef<'_>, cx: &mut Reader<'_>) -> Option<i8>
fn write(&self) -> Value
fn encode(&self, w: &mut Writer)
fn write_text(&self, w: &mut Writer)
fn decode(d: &mut Decoder<'_>) -> Option<i8>
fn pack(&self, p: &mut Packer)
fn unpack(u: &mut Unpacker<'_>) -> Option<i8>
fn pack_list(items: &[i8], p: &mut Packer)
fn unpack_list(u: &mut Unpacker<'_>) -> Option<Vec<i8>>
fn encode_list(items: &[i8], w: &mut Writer)
fn decode_list(d: &mut Decoder<'_>) -> Option<Vec<i8>>
Source§impl Schema for i16
impl Schema for i16
fn shape() -> Shape
fn read(v: &ValueRef<'_>, cx: &mut Reader<'_>) -> Option<i16>
fn write(&self) -> Value
fn encode(&self, w: &mut Writer)
fn write_text(&self, w: &mut Writer)
fn decode(d: &mut Decoder<'_>) -> Option<i16>
fn pack(&self, p: &mut Packer)
fn unpack(u: &mut Unpacker<'_>) -> Option<i16>
fn pack_list(items: &[i16], p: &mut Packer)
fn unpack_list(u: &mut Unpacker<'_>) -> Option<Vec<i16>>
fn encode_list(items: &[i16], w: &mut Writer)
fn decode_list(d: &mut Decoder<'_>) -> Option<Vec<i16>>
Source§impl Schema for i32
impl Schema for i32
fn shape() -> Shape
fn read(v: &ValueRef<'_>, cx: &mut Reader<'_>) -> Option<i32>
fn write(&self) -> Value
fn encode(&self, w: &mut Writer)
fn write_text(&self, w: &mut Writer)
fn decode(d: &mut Decoder<'_>) -> Option<i32>
fn pack(&self, p: &mut Packer)
fn unpack(u: &mut Unpacker<'_>) -> Option<i32>
fn pack_list(items: &[i32], p: &mut Packer)
fn unpack_list(u: &mut Unpacker<'_>) -> Option<Vec<i32>>
fn encode_list(items: &[i32], w: &mut Writer)
fn decode_list(d: &mut Decoder<'_>) -> Option<Vec<i32>>
Source§impl Schema for i64
impl Schema for i64
fn shape() -> Shape
fn read(v: &ValueRef<'_>, cx: &mut Reader<'_>) -> Option<i64>
fn write(&self) -> Value
fn encode(&self, w: &mut Writer)
fn write_text(&self, w: &mut Writer)
fn decode(d: &mut Decoder<'_>) -> Option<i64>
fn pack(&self, p: &mut Packer)
fn unpack(u: &mut Unpacker<'_>) -> Option<i64>
fn pack_list(items: &[i64], p: &mut Packer)
fn unpack_list(u: &mut Unpacker<'_>) -> Option<Vec<i64>>
fn encode_list(items: &[i64], w: &mut Writer)
fn decode_list(d: &mut Decoder<'_>) -> Option<Vec<i64>>
Source§impl Schema for u8
impl Schema for u8
fn shape() -> Shape
fn read(v: &ValueRef<'_>, cx: &mut Reader<'_>) -> Option<u8>
fn write(&self) -> Value
fn encode(&self, w: &mut Writer)
fn write_text(&self, w: &mut Writer)
fn decode(d: &mut Decoder<'_>) -> Option<u8>
fn pack(&self, p: &mut Packer)
fn unpack(u: &mut Unpacker<'_>) -> Option<u8>
fn pack_list(items: &[u8], p: &mut Packer)
fn unpack_list(u: &mut Unpacker<'_>) -> Option<Vec<u8>>
fn encode_list(items: &[u8], w: &mut Writer)
fn decode_list(d: &mut Decoder<'_>) -> Option<Vec<u8>>
Source§impl Schema for u16
impl Schema for u16
fn shape() -> Shape
fn read(v: &ValueRef<'_>, cx: &mut Reader<'_>) -> Option<u16>
fn write(&self) -> Value
fn encode(&self, w: &mut Writer)
fn write_text(&self, w: &mut Writer)
fn decode(d: &mut Decoder<'_>) -> Option<u16>
fn pack(&self, p: &mut Packer)
fn unpack(u: &mut Unpacker<'_>) -> Option<u16>
fn pack_list(items: &[u16], p: &mut Packer)
fn unpack_list(u: &mut Unpacker<'_>) -> Option<Vec<u16>>
fn encode_list(items: &[u16], w: &mut Writer)
fn decode_list(d: &mut Decoder<'_>) -> Option<Vec<u16>>
Source§impl Schema for u32
impl Schema for u32
fn shape() -> Shape
fn read(v: &ValueRef<'_>, cx: &mut Reader<'_>) -> Option<u32>
fn write(&self) -> Value
fn encode(&self, w: &mut Writer)
fn write_text(&self, w: &mut Writer)
fn decode(d: &mut Decoder<'_>) -> Option<u32>
fn pack(&self, p: &mut Packer)
fn unpack(u: &mut Unpacker<'_>) -> Option<u32>
fn pack_list(items: &[u32], p: &mut Packer)
fn unpack_list(u: &mut Unpacker<'_>) -> Option<Vec<u32>>
fn encode_list(items: &[u32], w: &mut Writer)
fn decode_list(d: &mut Decoder<'_>) -> Option<Vec<u32>>
Source§impl Schema for u64
impl Schema for u64
fn shape() -> Shape
fn read(v: &ValueRef<'_>, cx: &mut Reader<'_>) -> Option<u64>
fn write(&self) -> Value
fn encode(&self, w: &mut Writer)
fn write_text(&self, w: &mut Writer)
fn decode(d: &mut Decoder<'_>) -> Option<u64>
fn pack(&self, p: &mut Packer)
fn unpack(u: &mut Unpacker<'_>) -> Option<u64>
fn pack_list(items: &[u64], p: &mut Packer)
fn unpack_list(u: &mut Unpacker<'_>) -> Option<Vec<u64>>
fn encode_list(items: &[u64], w: &mut Writer)
fn decode_list(d: &mut Decoder<'_>) -> Option<Vec<u64>>
Source§impl Schema for usize
impl Schema for usize
fn shape() -> Shape
fn read(v: &ValueRef<'_>, cx: &mut Reader<'_>) -> Option<usize>
fn write(&self) -> Value
fn encode(&self, w: &mut Writer)
fn write_text(&self, w: &mut Writer)
fn decode(d: &mut Decoder<'_>) -> Option<usize>
fn pack(&self, p: &mut Packer)
fn unpack(u: &mut Unpacker<'_>) -> Option<usize>
fn pack_list(items: &[usize], p: &mut Packer)
fn unpack_list(u: &mut Unpacker<'_>) -> Option<Vec<usize>>
fn encode_list(items: &[usize], w: &mut Writer)
fn decode_list(d: &mut Decoder<'_>) -> Option<Vec<usize>>
Source§impl<A, B, C, D> Schema for (A, B, C, D)
impl<A, B, C, D> Schema for (A, B, C, D)
Source§fn pack(&self, p: &mut Packer)
fn pack(&self, p: &mut Packer)
In a frame it’s a list of any values, as its shape says: each item in its binary form.
fn shape() -> Shape
fn read(v: &ValueRef<'_>, cx: &mut Reader<'_>) -> Option<(A, B, C, D)>
fn write(&self) -> Value
fn unpack(u: &mut Unpacker<'_>) -> Option<(A, B, C, D)>
Source§impl<A, B, C> Schema for (A, B, C)
impl<A, B, C> Schema for (A, B, C)
Source§fn pack(&self, p: &mut Packer)
fn pack(&self, p: &mut Packer)
In a frame it’s a list of any values, as its shape says: each item in its binary form.
fn shape() -> Shape
fn read(v: &ValueRef<'_>, cx: &mut Reader<'_>) -> Option<(A, B, C)>
fn write(&self) -> Value
fn unpack(u: &mut Unpacker<'_>) -> Option<(A, B, C)>
Source§impl<A, B> Schema for (A, B)
impl<A, B> Schema for (A, B)
Source§fn pack(&self, p: &mut Packer)
fn pack(&self, p: &mut Packer)
In a frame it’s a list of any values, as its shape says: each item in its binary form.
fn shape() -> Shape
fn read(v: &ValueRef<'_>, cx: &mut Reader<'_>) -> Option<(A, B)>
fn write(&self) -> Value
fn unpack(u: &mut Unpacker<'_>) -> Option<(A, B)>
Source§impl<T, const N: usize> Schema for [T; N]where
T: Schema,
impl<T, const N: usize> Schema for [T; N]where
T: Schema,
fn shape() -> Shape
fn read(v: &ValueRef<'_>, cx: &mut Reader<'_>) -> Option<[T; N]>
fn write(&self) -> Value
fn write_text(&self, w: &mut Writer)
fn encode(&self, w: &mut Writer)
fn decode(d: &mut Decoder<'_>) -> Option<[T; N]>
fn pack(&self, p: &mut Packer)
fn unpack(u: &mut Unpacker<'_>) -> Option<[T; N]>
Source§impl<T> Schema for BTreeSet<T>
A set: a list, in order, each once.
impl<T> Schema for BTreeSet<T>
A set: a list, in order, each once.
fn shape() -> Shape
fn read(v: &ValueRef<'_>, cx: &mut Reader<'_>) -> Option<BTreeSet<T>>
fn write(&self) -> Value
fn write_text(&self, w: &mut Writer)
fn encode(&self, w: &mut Writer)
fn decode(d: &mut Decoder<'_>) -> Option<BTreeSet<T>>
fn unpack(u: &mut Unpacker<'_>) -> Option<BTreeSet<T>>
Source§impl<T> Schema for Box<T>where
T: Schema,
impl<T> Schema for Box<T>where
T: Schema,
fn shape() -> Shape
fn read(v: &ValueRef<'_>, cx: &mut Reader<'_>) -> Option<Box<T>>
fn write(&self) -> Value
fn write_text(&self, w: &mut Writer)
fn encode(&self, w: &mut Writer)
fn decode(d: &mut Decoder<'_>) -> Option<Box<T>>
fn pack(&self, p: &mut Packer)
fn unpack(u: &mut Unpacker<'_>) -> Option<Box<T>>
fn absent() -> Option<Box<T>>
fn skip(&self) -> bool
Source§impl<T> Schema for Box<[T]>where
T: Schema,
A string that won’t change: a pointer and a length, no spare capacity
(String’s third word) — what big tables of names keep.
A list that won’t change: no spare capacity.
impl<T> Schema for Box<[T]>where
T: Schema,
A string that won’t change: a pointer and a length, no spare capacity
(String’s third word) — what big tables of names keep.
A list that won’t change: no spare capacity.
fn shape() -> Shape
fn read(v: &ValueRef<'_>, cx: &mut Reader<'_>) -> Option<Box<[T]>>
fn write(&self) -> Value
fn write_text(&self, w: &mut Writer)
fn encode(&self, w: &mut Writer)
fn decode(d: &mut Decoder<'_>) -> Option<Box<[T]>>
fn pack(&self, p: &mut Packer)
fn unpack(u: &mut Unpacker<'_>) -> Option<Box<[T]>>
Source§impl<T> Schema for Option<T>where
T: Schema,
impl<T> Schema for Option<T>where
T: Schema,
fn shape() -> Shape
fn read(v: &ValueRef<'_>, cx: &mut Reader<'_>) -> Option<Option<T>>
fn write(&self) -> Value
fn write_text(&self, w: &mut Writer)
fn encode(&self, w: &mut Writer)
fn decode(d: &mut Decoder<'_>) -> Option<Option<T>>
fn pack(&self, p: &mut Packer)
fn unpack(u: &mut Unpacker<'_>) -> Option<Option<T>>
fn absent() -> Option<Option<T>>
fn skip(&self) -> bool
Source§impl<T> Schema for Vec<T>where
T: Schema,
impl<T> Schema for Vec<T>where
T: Schema,
fn shape() -> Shape
fn read(v: &ValueRef<'_>, cx: &mut Reader<'_>) -> Option<Vec<T>>
fn write(&self) -> Value
fn write_text(&self, w: &mut Writer)
fn encode(&self, w: &mut Writer)
fn decode(d: &mut Decoder<'_>) -> Option<Vec<T>>
fn pack(&self, p: &mut Packer)
fn unpack(u: &mut Unpacker<'_>) -> Option<Vec<T>>
Implementors§
impl Schema for AboveTop
impl Schema for Actionbar
impl Schema for ActionbarJson
impl Schema for Add
impl Schema for AddEffect
impl Schema for AddPlayer
impl Schema for AddVelocity
impl Schema for AddXp
impl Schema for AddressKind
impl Schema for Advancement
impl Schema for AdvancementDone
impl Schema for AnchorKind
impl Schema for AnimFile
impl Schema for Answer
impl Schema for Area
impl Schema for Armor
impl Schema for ArmorDefense
impl Schema for ArmorMaterial
impl Schema for ArmorPiece
impl Schema for ArmorSlot
impl Schema for Atlas
impl Schema for Atom
Text everywhere but in a frame, which carries its number.
impl Schema for yog_api::player::action::Attack
impl Schema for yog_api::client::control::Attack
impl Schema for AttributeBase
impl Schema for AttributeDef
impl Schema for yog_api::entity::AttributeValue
impl Schema for yog_api::client::AttributeValue
impl Schema for Binding
impl Schema for BiomeFeature
impl Schema for Blend
impl Schema for yog_api::event::content::Block
impl Schema for yog_api::item::Block
impl Schema for BlockArea
impl Schema for BlockDef
impl Schema for BlockHit
impl Schema for BlockInfo
impl Schema for yog_api::core::BlockKind
impl Schema for BlockPos
impl Schema for BlockProperty
impl Schema for BlockScope
impl Schema for Body
impl Schema for BodyTrack
impl Schema for BodyTrackType
impl Schema for Bone
impl Schema for BoneDef
impl Schema for BoneOp
impl Schema for Bonemeal
impl Schema for Book
impl Schema for BookCategory
impl Schema for BookEntry
impl Schema for BookPage
impl Schema for Break
impl Schema for Brew
impl Schema for Broadcast
impl Schema for yog_api::event::jvm::Call
impl Schema for yog_api::event::nanite::Call
impl Schema for Camera
impl Schema for CameraFrame
impl Schema for CameraOut
impl Schema for Capture
impl Schema for CategorizedBinding
impl Schema for Chat
impl Schema for ClassMap
impl Schema for ClearEffects
impl Schema for Click
impl Schema for ClickMode
impl Schema for ClipDef
impl Schema for Clock
impl Schema for yog_api::event::container::Close
impl Schema for yog_api::client::ui::Close
impl Schema for yog_api::event::ui::Close
impl Schema for yog_api::event::video::Close
impl Schema for Code
Written as its code; packed in a frame as an Atom (its number).
impl Schema for yog_api::body::Color
In Yog Data, a colour as written: #RRGGBB/#AARRGGBB (Yog Data’s
yog_data::Color; a .yres colour isn’t one here).
impl Schema for CommandSpec
impl Schema for ComponentInfo
impl Schema for Content
impl Schema for yog_api::player::action::Craft
impl Schema for yog_api::event::container::machine::Craft
impl Schema for Create
impl Schema for CubeDef
impl Schema for CustomPage
impl Schema for Cutscene
impl Schema for yog_api::entity::combat::Damage
impl Schema for yog_api::entity::Damage
impl Schema for Data
impl Schema for DataValue
impl Schema for yog_api::entity::life::Death
impl Schema for yog_api::player::life::Death
impl Schema for Declaration
impl Schema for Declare
impl Schema for yog_api::event::command::Declared
impl Schema for yog_api::event::mirror::Declared
impl Schema for yog_api::event::key_binding::Declared
impl Schema for yog_api::event::menu::Declared
impl Schema for DefinitionDoc
impl Schema for Describe
impl Schema for Descriptor
impl Schema for Destroy
impl Schema for Diagnostic
impl Schema for Dictionary
impl Schema for DigSpeed
impl Schema for DigSpeeds
impl Schema for Dimension
impl Schema for Dir
impl Schema for Dismount
impl Schema for Done
impl Schema for Draw
impl Schema for Drive
impl Schema for DropLoot
impl Schema for Ease
impl Schema for EffectCategory
impl Schema for EffectDef
impl Schema for EffectModifier
impl Schema for Entities
impl Schema for EntitiesInBox
impl Schema for EntityCount
impl Schema for EntityData
impl Schema for EntityDef
impl Schema for EntityInfo
impl Schema for EntityKind
impl Schema for EntityStack
impl Schema for Explode
impl Schema for Explosion
impl Schema for yog_api::Face
impl Schema for Facing
impl Schema for FieldDoc
impl Schema for FieldSpec
impl Schema for FillRegion
impl Schema for Find
impl Schema for yog_api::event::content::Font
impl Schema for yog_api::item::Food
impl Schema for yog_api::core::Food
impl Schema for FoodDef
impl Schema for FoodEffect
impl Schema for yog_api::event::video::Frame
impl Schema for yog_api::body::Frame
impl Schema for Frames
impl Schema for GameTool
impl Schema for GeneratedChunk
impl Schema for yog_api::scoreboard::Get
impl Schema for yog_api::event::nanite::Get
impl Schema for GetBlock
impl Schema for GiveItem
impl Schema for Grant
impl Schema for Hanging
impl Schema for yog_api::event::content::Hangs
impl Schema for yog_api::content::Hangs
impl Schema for HasBlock
impl Schema for HasEntity
impl Schema for HasItem
impl Schema for Health
impl Schema for HeldItem
impl Schema for yog_api::player::HeldItemData
impl Schema for yog_api::client::HeldItemData
impl Schema for HeldItemNbt
impl Schema for Hud
impl Schema for yog_api::entity::Info
impl Schema for yog_api::player::Info
impl Schema for yog_api::block::Info
impl Schema for Inject
impl Schema for Injected
impl Schema for Input
impl Schema for Insert
impl Schema for Interact
impl Schema for yog_api::player::Inventory
impl Schema for yog_api::event::content::Inventory
impl Schema for yog_api::client::local::Inventory
impl Schema for InventoryDef
impl Schema for yog_api::block::InventorySlot
impl Schema for yog_api::event::content::InventorySlot
impl Schema for IsRaining
impl Schema for IsThundering
impl Schema for Item
impl Schema for ItemDef
impl Schema for ItemLooks
impl Schema for ItemTint
impl Schema for Items
impl Schema for Join
impl Schema for Kept
impl Schema for yog_api::event::mirror::Key
impl Schema for yog_api::client::input::Key
impl Schema for KeyBindingSpec
impl Schema for KeyDef
impl Schema for KeyDown
impl Schema for KeyName
impl Schema for Keys
impl Schema for Kick
impl Schema for Kill
impl Schema for KindName
A kind’s name as text: checked when it’s read.
impl Schema for LayoutPart
impl Schema for Leave
impl Schema for LevelTag
impl Schema for Lifetime
impl Schema for List
impl Schema for LocalState
impl Schema for Look
impl Schema for LookModels
impl Schema for Loop
impl Schema for Loot
impl Schema for LootAdd
impl Schema for LootModifier
impl Schema for LootScale
impl Schema for LootStack
impl Schema for yog_api::event::content::Machine
impl Schema for yog_api::inventory::Machine
impl Schema for MachinePlace
impl Schema for Mappings
impl Schema for MemberMap
impl Schema for MenuEntry
impl Schema for Mesh
impl Schema for yog_api::player::chat::Message
impl Schema for yog_api::client::local::Message
impl Schema for Mine
impl Schema for MirrorSpec
impl Schema for ModInfo
impl Schema for ModLoaded
impl Schema for Mode
impl Schema for ModelFile
impl Schema for ModifierOperation
impl Schema for Mods
impl Schema for Mount
impl Schema for Move
impl Schema for Nanites
impl Schema for yog_api::entity::Nbt
impl Schema for yog_api::block::Nbt
impl Schema for NearbyEntity
impl Schema for OffhandItemNbt
impl Schema for Online
impl Schema for OnlyBlocks
impl Schema for yog_api::event::container::Open
impl Schema for yog_api::client::ui::Open
impl Schema for yog_api::event::ui::Open
impl Schema for yog_api::event::video::Open
impl Schema for OpenWithFlags
impl Schema for Ops
impl Schema for Owners
impl Schema for yog_api::PacketEvent
impl Schema for yog_api::ClientPacketEvent
impl Schema for Page
impl Schema for PageElement
impl Schema for PageProperty
impl Schema for PageType
impl Schema for Particle
impl Schema for ParticleDef
impl Schema for ParticleOptions
impl Schema for ParticleRender
impl Schema for Passengers
impl Schema for Path
A path as its steps.
impl Schema for Pickup
impl Schema for yog_api::item::Picture
impl Schema for yog_api::video::Picture
impl Schema for yog_api::event::mirror::Place
impl Schema for yog_api::block::Place
impl Schema for yog_api::client::control::Place
impl Schema for PlaceBlockFromSlot
impl Schema for PlaceFeature
impl Schema for PlacedBlock
impl Schema for Placement
impl Schema for PlatformMods
impl Schema for yog_api::sound::Play
impl Schema for yog_api::event::video::Play
impl Schema for PlaySound
impl Schema for PlayToPlayer
impl Schema for PlayerInfo
impl Schema for Png
impl Schema for PngBytes
impl Schema for Point
impl Schema for Position
impl Schema for PotionDef
impl Schema for PotionEffect
impl Schema for PourFluid
impl Schema for ProjectileHit
impl Schema for PropInfo
impl Schema for PropKind
impl Schema for Provide
impl Schema for Rate
impl Schema for Raycast
impl Schema for RaycastBlock
impl Schema for RaycastEntity
impl Schema for Read
impl Schema for Recipe
impl Schema for RecipeKindDef
impl Schema for RecipeLayout
impl Schema for yog_api::event::log::Record
impl Schema for yog_api::event::storage::Record
impl Schema for Rect
impl Schema for RedstonePower
impl Schema for RedstoneSignal
impl Schema for Ref
A reference of any kind: in a frame, its kind and its id, as text.
impl Schema for yog_api::event::content::Register
impl Schema for yog_api::event::mirror::Release
impl Schema for yog_api::event::nanite::Release
impl Schema for yog_api::client::control::Release
impl Schema for yog_api::bossbar::Remove
impl Schema for yog_api::event::storage::Remove
impl Schema for RemoveEffect
impl Schema for RemovePlayer
impl Schema for Render
impl Schema for Request
impl Schema for Resolve
impl Schema for Respawn
impl Schema for yog_api::entity::Rotation
impl Schema for yog_api::Rotation
impl Schema for Run
impl Schema for Saving
impl Schema for Scan
impl Schema for ScanRegion
impl Schema for Scope
impl Schema for ScreenSlot
impl Schema for ScreenSlots
impl Schema for Scroll
impl Schema for Seek
impl Schema for substrate_data::model::value::Seg
impl Schema for SelectSlot
impl Schema for Send
impl Schema for SendToPlayer
impl Schema for yog_api::scoreboard::Set
impl Schema for yog_api::event::nanite::Set
impl Schema for SetAttributeBase
impl Schema for SetBlock
impl Schema for SetBlockTint
impl Schema for SetColor
impl Schema for SetData
impl Schema for yog_api::entity::SetDimensions
impl Schema for yog_api::client::SetDimensions
impl Schema for SetEntityStack
impl Schema for SetFallDistance
impl Schema for SetFireTicks
impl Schema for SetGamemode
impl Schema for SetHealth
impl Schema for SetHeldItemData
impl Schema for SetHeldItemNbt
impl Schema for SetInventorySlot
impl Schema for SetItemCooldown
impl Schema for SetMayFly
impl Schema for yog_api::entity::SetNbt
impl Schema for yog_api::block::SetNbt
impl Schema for SetOffhandItemNbt
impl Schema for SetProgress
impl Schema for SetRedstoneOutput
impl Schema for SetSlot
impl Schema for SetSlotItem
impl Schema for SetState
impl Schema for SetThunder
impl Schema for SetTime
impl Schema for SetTitle
impl Schema for SetVelocity
impl Schema for SetVisible
impl Schema for SetWeather
impl Schema for Severity
impl Schema for ShapeDoc
impl Schema for ShapeNode
impl Schema for Shown
impl Schema for SlotItem
impl Schema for SlotLayout
impl Schema for SlotSpec
impl Schema for SlotStack
impl Schema for SoundGroup
impl Schema for yog_api::entity::life::Spawn
impl Schema for yog_api::entity::Spawn
impl Schema for SpawnItem
impl Schema for SpawnParticles
impl Schema for Stack
impl Schema for Started
impl Schema for StartupGrant
impl Schema for yog_api::block::State
impl Schema for yog_api::client::local::State
impl Schema for StopMining
impl Schema for StopSound
impl Schema for Stopping
impl Schema for SyncedRow
impl Schema for Target
impl Schema for yog_api::entity::Teleport
impl Schema for yog_api::player::Teleport
impl Schema for yog_api::entity::TeleportToDim
impl Schema for yog_api::player::TeleportToDim
impl Schema for Tellraw
impl Schema for yog_api::item::Text
impl Schema for yog_api::entity::game::Tick
impl Schema for yog_api::event::server::game::Tick
impl Schema for yog_api::client::game::Tick
impl Schema for Time
impl Schema for Title
impl Schema for Tool
impl Schema for ToolItem
impl Schema for ToolLadder
impl Schema for ToolLevel
impl Schema for ToolMaterial
impl Schema for Tooltip
impl Schema for Touch
impl Schema for TracksDef
impl Schema for Translate
impl Schema for Travel
impl Schema for TravelFrame
impl Schema for Ui
impl Schema for Uid
impl Schema for Use
impl Schema for yog_api::player::action::UseItem
impl Schema for yog_api::block::UseItem
impl Schema for yog_api::client::control::UseItem
impl Schema for Value
impl Schema for ValueType
impl Schema for VariantDoc
impl Schema for Vec3
impl Schema for Vehicle
impl Schema for Velocity
impl Schema for VideoDef
impl Schema for Where
impl Schema for World
impl Schema for WorldDir
impl Schema for yog_api::event::mirror::Write
impl Schema for yog_api::event::storage::Write
impl Schema for YogDimensionDef
impl Schema for YogDimensionTypeDef
impl<K> Schema for Id<K>where
K: Kind,
In a frame, only its id (the kind is the field’s).