pub trait Schema: Sized {
Show 13 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 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 Yog Data format.
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 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 AdvancementDef
impl Schema for AdvancementDef
fn encode(&self, __yog_w: &mut Writer)
fn decode(__yog_d: &mut Decoder<'_>) -> Option<AdvancementDef>
fn pack(&self, __yog_p: &mut Packer)
fn unpack(__yog_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, __yog_w: &mut Writer)
fn decode(__yog_d: &mut Decoder<'_>) -> Option<Animation>
fn pack(&self, __yog_p: &mut Packer)
fn unpack(__yog_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 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 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
Source§impl Schema for ArmorProps
impl Schema for ArmorProps
fn encode(&self, __yog_w: &mut Writer)
fn decode(__yog_d: &mut Decoder<'_>) -> Option<ArmorProps>
fn pack(&self, __yog_p: &mut Packer)
fn unpack(__yog_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 decode(d: &mut Decoder<'_>) -> Option<Axis>
Source§impl Schema for BlockFile
impl Schema for BlockFile
fn encode(&self, __yog_w: &mut Writer)
fn decode(__yog_d: &mut Decoder<'_>) -> Option<BlockFile>
fn pack(&self, __yog_p: &mut Packer)
fn unpack(__yog_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
Source§impl Schema for BlockKind
impl Schema for BlockKind
fn encode(&self, __yog_w: &mut Writer)
fn decode(__yog_d: &mut Decoder<'_>) -> Option<BlockKind>
fn pack(&self, __yog_p: &mut Packer)
fn unpack(__yog_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
Source§impl Schema for BlockShape
impl Schema for BlockShape
Source§impl Schema for Box<str>
A string that won’t change: a pointer and a length, no spare capacity
(String’s third word) — what big tables of names keep.
impl Schema for Box<str>
A string that won’t change: a pointer and a length, no spare capacity
(String’s third word) — what big tables of names keep.
fn shape() -> Shape
fn read(v: &ValueRef<'_>, cx: &mut Reader<'_>) -> Option<Box<str>>
fn write(&self) -> Value
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, __yog_w: &mut Writer)
fn decode(__yog_d: &mut Decoder<'_>) -> Option<Brewing>
fn pack(&self, __yog_p: &mut Packer)
fn unpack(__yog_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, __yog_w: &mut Writer)
fn decode(__yog_d: &mut Decoder<'_>) -> Option<Built>
fn pack(&self, __yog_p: &mut Packer)
fn unpack(__yog_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 CharGlyph
impl Schema for CharGlyph
fn encode(&self, __yog_w: &mut Writer)
fn decode(__yog_d: &mut Decoder<'_>) -> Option<CharGlyph>
fn pack(&self, __yog_p: &mut Packer)
fn unpack(__yog_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 Common
impl Schema for Common
fn encode(&self, __yog_w: &mut Writer)
fn decode(__yog_d: &mut Decoder<'_>) -> Option<Common>
fn pack(&self, __yog_p: &mut Packer)
fn unpack(__yog_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, __yog_w: &mut Writer)
fn decode(__yog_d: &mut Decoder<'_>) -> Option<Connect>
fn pack(&self, __yog_p: &mut Packer)
fn unpack(__yog_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, __yog_w: &mut Writer)
fn decode(__yog_d: &mut Decoder<'_>) -> Option<Cooking>
fn pack(&self, __yog_p: &mut Packer)
fn unpack(__yog_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 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, __yog_w: &mut Writer)
fn decode(__yog_d: &mut Decoder<'_>) -> Option<CriterionDef>
fn pack(&self, __yog_p: &mut Packer)
fn unpack(__yog_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, __yog_w: &mut Writer)
fn decode(__yog_d: &mut Decoder<'_>) -> Option<Custom>
fn pack(&self, __yog_p: &mut Packer)
fn unpack(__yog_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, __yog_w: &mut Writer)
fn decode(__yog_d: &mut Decoder<'_>) -> Option<DamageTypeDef>
fn pack(&self, __yog_p: &mut Packer)
fn unpack(__yog_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, __yog_w: &mut Writer)
fn decode(__yog_d: &mut Decoder<'_>) -> Option<DevSection>
fn pack(&self, __yog_p: &mut Packer)
fn unpack(__yog_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, __yog_w: &mut Writer)
fn decode(__yog_d: &mut Decoder<'_>) -> Option<DimensionDef>
fn pack(&self, __yog_p: &mut Packer)
fn unpack(__yog_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, __yog_w: &mut Writer)
fn pack(&self, __yog_p: &mut Packer)
fn unpack(__yog_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, __yog_w: &mut Writer)
fn decode(__yog_d: &mut Decoder<'_>) -> Option<Display>
fn pack(&self, __yog_p: &mut Packer)
fn unpack(__yog_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, __yog_w: &mut Writer)
fn decode(__yog_d: &mut Decoder<'_>) -> Option<DropItem>
fn pack(&self, __yog_p: &mut Packer)
fn unpack(__yog_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 ElementRotation
impl Schema for ElementRotation
Source§impl Schema for EntryObject
impl Schema for EntryObject
fn encode(&self, __yog_w: &mut Writer)
fn decode(__yog_d: &mut Decoder<'_>) -> Option<EntryObject>
fn pack(&self, __yog_p: &mut Packer)
fn unpack(__yog_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, __yog_w: &mut Writer)
fn decode(__yog_d: &mut Decoder<'_>) -> Option<ExternalSection>
fn pack(&self, __yog_p: &mut Packer)
fn unpack(__yog_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 Faces
impl Schema for Faces
fn encode(&self, __yog_w: &mut Writer)
fn decode(__yog_d: &mut Decoder<'_>) -> Option<Faces>
fn pack(&self, __yog_p: &mut Packer)
fn unpack(__yog_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, __yog_w: &mut Writer)
fn decode(__yog_d: &mut Decoder<'_>) -> Option<Fill>
fn pack(&self, __yog_p: &mut Packer)
fn unpack(__yog_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, __yog_w: &mut Writer)
fn decode(__yog_d: &mut Decoder<'_>) -> Option<Fit>
fn pack(&self, __yog_p: &mut Packer)
fn unpack(__yog_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, __yog_w: &mut Writer)
fn decode(__yog_d: &mut Decoder<'_>) -> Option<Fluid>
fn pack(&self, __yog_p: &mut Packer)
fn unpack(__yog_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, __yog_w: &mut Writer)
fn decode(__yog_d: &mut Decoder<'_>) -> Option<Font>
fn pack(&self, __yog_p: &mut Packer)
fn unpack(__yog_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 Frame
impl Schema for Frame
fn encode(&self, __yog_w: &mut Writer)
fn decode(__yog_d: &mut Decoder<'_>) -> Option<Frame>
fn pack(&self, __yog_p: &mut Packer)
fn unpack(__yog_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, __yog_w: &mut Writer)
fn decode(__yog_d: &mut Decoder<'_>) -> Option<Glyph>
fn pack(&self, __yog_p: &mut Packer)
fn unpack(__yog_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, __yog_w: &mut Writer)
fn decode(__yog_d: &mut Decoder<'_>) -> Option<GlyphClass>
fn pack(&self, __yog_p: &mut Packer)
fn unpack(__yog_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 decode(d: &mut Decoder<'_>) -> Option<GuiLight>
Source§impl Schema for HangsProps
impl Schema for HangsProps
fn encode(&self, __yog_w: &mut Writer)
fn decode(__yog_d: &mut Decoder<'_>) -> Option<HangsProps>
fn pack(&self, __yog_p: &mut Packer)
fn unpack(__yog_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 decode(d: &mut Decoder<'_>) -> Option<HeightShape>
Source§impl Schema for Image
impl Schema for Image
fn encode(&self, __yog_w: &mut Writer)
fn decode(__yog_d: &mut Decoder<'_>) -> Option<Image>
fn pack(&self, __yog_p: &mut Packer)
fn unpack(__yog_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, __yog_w: &mut Writer)
fn decode(__yog_d: &mut Decoder<'_>) -> Option<ImageOp>
fn pack(&self, __yog_p: &mut Packer)
fn unpack(__yog_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, __yog_w: &mut Writer)
fn decode(__yog_d: &mut Decoder<'_>) -> Option<ItemFile>
fn pack(&self, __yog_p: &mut Packer)
fn unpack(__yog_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 Kern
impl Schema for Kern
fn encode(&self, __yog_w: &mut Writer)
fn decode(__yog_d: &mut Decoder<'_>) -> Option<Kern>
fn pack(&self, __yog_p: &mut Packer)
fn unpack(__yog_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 decode(d: &mut Decoder<'_>) -> Option<Kind>
Source§impl Schema for KindModel
impl Schema for KindModel
fn encode(&self, __yog_w: &mut Writer)
fn decode(__yog_d: &mut Decoder<'_>) -> Option<KindModel>
fn pack(&self, __yog_p: &mut Packer)
fn unpack(__yog_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, __yog_w: &mut Writer)
fn decode(__yog_d: &mut Decoder<'_>) -> Option<KindPart>
fn pack(&self, __yog_p: &mut Packer)
fn unpack(__yog_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 Ligature
impl Schema for Ligature
fn encode(&self, __yog_w: &mut Writer)
fn decode(__yog_d: &mut Decoder<'_>) -> Option<Ligature>
fn pack(&self, __yog_p: &mut Packer)
fn unpack(__yog_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, __yog_w: &mut Writer)
fn decode(__yog_d: &mut Decoder<'_>) -> Option<LootTableDef>
fn pack(&self, __yog_p: &mut Packer)
fn unpack(__yog_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, __yog_w: &mut Writer)
fn decode(__yog_d: &mut Decoder<'_>) -> Option<Machine>
fn pack(&self, __yog_p: &mut Packer)
fn unpack(__yog_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, __yog_w: &mut Writer)
fn decode(__yog_d: &mut Decoder<'_>) -> Option<ManifestFile>
fn pack(&self, __yog_p: &mut Packer)
fn unpack(__yog_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 MaterialFile
impl Schema for MaterialFile
fn encode(&self, __yog_w: &mut Writer)
fn decode(__yog_d: &mut Decoder<'_>) -> Option<MaterialFile>
fn pack(&self, __yog_p: &mut Packer)
fn unpack(__yog_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 ModSection
impl Schema for ModSection
fn encode(&self, __yog_w: &mut Writer)
fn decode(__yog_d: &mut Decoder<'_>) -> Option<ModSection>
fn pack(&self, __yog_p: &mut Packer)
fn unpack(__yog_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, __yog_w: &mut Writer)
fn decode(__yog_d: &mut Decoder<'_>) -> Option<Model>
fn pack(&self, __yog_p: &mut Packer)
fn unpack(__yog_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 NoiseLayer
impl Schema for NoiseLayer
Source§impl Schema for OreHeight
impl Schema for OreHeight
fn encode(&self, __yog_w: &mut Writer)
fn decode(__yog_d: &mut Decoder<'_>) -> Option<OreHeight>
fn pack(&self, __yog_p: &mut Packer)
fn unpack(__yog_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, __yog_w: &mut Writer)
fn decode(__yog_d: &mut Decoder<'_>) -> Option<OreTarget>
fn pack(&self, __yog_p: &mut Packer)
fn unpack(__yog_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 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 PotionProps
impl Schema for PotionProps
fn encode(&self, __yog_w: &mut Writer)
fn decode(__yog_d: &mut Decoder<'_>) -> Option<PotionProps>
fn pack(&self, __yog_p: &mut Packer)
fn unpack(__yog_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 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 decode(d: &mut Decoder<'_>) -> Option<RenderLayer>
Source§impl Schema for Shaped
impl Schema for Shaped
fn encode(&self, __yog_w: &mut Writer)
fn decode(__yog_d: &mut Decoder<'_>) -> Option<Shaped>
fn pack(&self, __yog_p: &mut Packer)
fn unpack(__yog_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, __yog_w: &mut Writer)
fn decode(__yog_d: &mut Decoder<'_>) -> Option<Shapeless>
fn pack(&self, __yog_p: &mut Packer)
fn unpack(__yog_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, __yog_w: &mut Writer)
fn decode(__yog_d: &mut Decoder<'_>) -> Option<Smithing>
fn pack(&self, __yog_p: &mut Packer)
fn unpack(__yog_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 States
impl Schema for States
fn encode(&self, __yog_w: &mut Writer)
fn decode(__yog_d: &mut Decoder<'_>) -> Option<States>
fn pack(&self, __yog_p: &mut Packer)
fn unpack(__yog_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, __yog_w: &mut Writer)
fn decode(__yog_d: &mut Decoder<'_>) -> Option<Stonecutting>
fn pack(&self, __yog_p: &mut Packer)
fn unpack(__yog_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 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, __yog_w: &mut Writer)
fn decode(__yog_d: &mut Decoder<'_>) -> Option<Stroke>
fn pack(&self, __yog_p: &mut Packer)
fn unpack(__yog_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
Source§impl Schema for TableDef
impl Schema for TableDef
fn encode(&self, __yog_w: &mut Writer)
fn decode(__yog_d: &mut Decoder<'_>) -> Option<TableDef>
fn pack(&self, __yog_p: &mut Packer)
fn unpack(__yog_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, __yog_w: &mut Writer)
fn decode(__yog_d: &mut Decoder<'_>) -> Option<TagDef>
fn pack(&self, __yog_p: &mut Packer)
fn unpack(__yog_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, __yog_w: &mut Writer)
fn decode(__yog_d: &mut Decoder<'_>) -> Option<Terrain>
fn pack(&self, __yog_p: &mut Packer)
fn unpack(__yog_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
Source§impl Schema for TextureFile
impl Schema for TextureFile
fn encode(&self, __yog_w: &mut Writer)
fn decode(__yog_d: &mut Decoder<'_>) -> Option<TextureFile>
fn pack(&self, __yog_p: &mut Packer)
fn unpack(__yog_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
Source§impl Schema for ToolProps
impl Schema for ToolProps
fn encode(&self, __yog_w: &mut Writer)
fn decode(__yog_d: &mut Decoder<'_>) -> Option<ToolProps>
fn pack(&self, __yog_p: &mut Packer)
fn unpack(__yog_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 Transition
impl Schema for Transition
fn encode(&self, __yog_w: &mut Writer)
fn decode(__yog_d: &mut Decoder<'_>) -> Option<Transition>
fn pack(&self, __yog_p: &mut Packer)
fn unpack(__yog_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, __yog_w: &mut Writer)
fn decode(__yog_d: &mut Decoder<'_>) -> Option<TreeDef>
fn pack(&self, __yog_p: &mut Packer)
fn unpack(__yog_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, __yog_w: &mut Writer)
fn decode(__yog_d: &mut Decoder<'_>) -> Option<TreeLeaves>
fn pack(&self, __yog_p: &mut Packer)
fn unpack(__yog_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, __yog_w: &mut Writer)
fn decode(__yog_d: &mut Decoder<'_>) -> Option<TreeTrunk>
fn pack(&self, __yog_p: &mut Packer)
fn unpack(__yog_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 decode(d: &mut Decoder<'_>) -> Option<TriggeredBy>
Source§impl Schema for WeightedBlock
impl Schema for WeightedBlock
fn encode(&self, __yog_w: &mut Writer)
fn decode(__yog_d: &mut Decoder<'_>) -> Option<WeightedBlock>
fn pack(&self, __yog_p: &mut Packer)
fn unpack(__yog_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 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 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 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 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 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 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 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 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 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 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 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 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§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 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 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 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 list that won’t change: no spare capacity.
impl<T> Schema for Box<[T]>where
T: Schema,
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 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 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 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 AnyRefOrTag
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::client::control::Attack
impl Schema for yog_api::player::action::Attack
impl Schema for AttributeBase
impl Schema for AttributeDef
impl Schema for yog_api::client::AttributeValue
impl Schema for yog_api::entity::AttributeValue
impl Schema for Binding
impl Schema for BiomeFeature
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 yog_api::client::ui::Close
impl Schema for yog_api::event::container::Close
impl Schema for yog_api::event::ui::Close
impl Schema for yog_data::schema::typed_values::Color
impl Schema for yog_api::body::Color
In Yog Data, a color value: #RRGGBB/#AARRGGBB in text.
impl Schema for CommandSpec
impl Schema for ComponentInfo
impl Schema for Content
impl Schema for yog_api::event::container::machine::Craft
impl Schema for yog_api::player::action::Craft
impl Schema for Create
impl Schema for CubeDef
impl Schema for CustomPage
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::key_binding::Declared
impl Schema for yog_api::event::menu::Declared
impl Schema for yog_api::event::mirror::Declared
impl Schema for Describe
impl Schema for Descriptor
impl Schema for Destroy
impl Schema for Diagnostic
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 FieldSpec
impl Schema for FillRegion
impl Schema for Find
impl Schema for yog_api::event::content::Font
impl Schema for FoodDef
impl Schema for yog_api::body::Frame
impl Schema for GameTool
impl Schema for GeneratedChunk
impl Schema for yog_api::event::nanite::Get
impl Schema for yog_api::scoreboard::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 HeldItemNbt
impl Schema for Hud
impl Schema for yog_data::schema::typed_values::Image
impl Schema for yog_api::block::Info
impl Schema for yog_api::entity::Info
impl Schema for yog_api::player::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::client::local::Inventory
impl Schema for yog_api::event::content::Inventory
impl Schema for yog_api::player::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::client::input::Key
impl Schema for yog_api::event::mirror::Key
impl Schema for KeyBindingSpec
impl Schema for KeyDef
impl Schema for KeyDown
impl Schema for Keys
impl Schema for Kick
impl Schema for Kill
impl Schema for LayoutPart
impl Schema for Leave
impl Schema for LevelTag
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 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::block::Nbt
impl Schema for yog_api::entity::Nbt
impl Schema for NearbyEntity
impl Schema for OffhandItemNbt
impl Schema for Online
impl Schema for yog_api::client::ui::Open
impl Schema for yog_api::event::container::Open
impl Schema for yog_api::event::ui::Open
impl Schema for OpenWithFlags
impl Schema for Ops
impl Schema for yog_api::ClientPacketEvent
impl Schema for yog_api::PacketEvent
impl Schema for Page
impl Schema for PageElement
impl Schema for PageProperty
impl Schema for PageType
impl Schema for Passengers
impl Schema for Path
A path as its steps.