mirror of
https://github.com/zap-proto/rust.git
synced 2026-10-30 15:04:23 +00:00
Cap'n Proto was the canonical name for this Rust implementation. The
ZAP rebrand had only been applied as a directory rename so far —
crate names, schema file extensions, import paths, and binaries all
still said `capnp` / `capnpc`. This commit makes the rebrand real.
Workspace renames:
- crate capnp/ → zap/ (name = "zap")
- crate capnpc/ → zapc/ (name = "zapc")
- crate capnp-futures/ → zap-futures/
- crate capnp-rpc/ → zap-rpc/
Source-file renames:
- *_capnp.rs → *_zap.rs (~12 files: schema_zap.rs, rpc_zap.rs, etc.)
- capnpc-rust.rs → zapc-rust.rs (the codegen binary entry point)
- *.capnp → *.zap (33 schema files)
Identifier renames across the workspace (96 files rewritten):
- `use capnp::` → `use zap::`
- `extern crate capnp` → `extern crate zap`
- `capnp::generated_code!` → `zap::generated_code!`
- `capnp::traits::Owned` → `zap::traits::Owned`
- `capnp::message::...` → `zap::message::...`
- `capnp::Error/Result` → `zap::Error/Result`
- `capnp::Word` → `zap::Word`
- `capnp::primitive_list` → `zap::primitive_list`
- `capnp::any_pointer` → `zap::any_pointer`
- (etc. — see python script in commit history for full list)
Cargo.toml dep keys:
- `capnp = { path = ... }` → `zap = { path = ... }`
- `[dependencies.capnp]` → `[dependencies.zap]`
- `capnpc = { ... }` → `zapc = { ... }`
- Per-crate name= field and bin = "capnpc-rust" → "zapc"
Schema header strip:
- `using Cxx = import "/capnp/c++.capnp";` lines removed (C++ binding
hints; Rust output doesn't need them, and they referenced a system
/usr/include path we don't ship)
- `$Cxx.namespace("capnp::...")` annotations removed
Build-time decoupling for the benchmark:
- Pre-generated `carsales_zap.rs`, `catrank_zap.rs`, `eval_zap.rs` are
now committed in benchmark/. benchmark/build.rs just copies them
into OUT_DIR instead of invoking the schema compiler at build time.
- benchmark/Cargo.toml drops the [build-dependencies] zapc entry.
Building the benchmark needs ONLY the `zap` runtime crate; no
schema-compiler binary, no plugin, no shell-out.
To regenerate the schema-bound .rs from .zap (developer-only step):
cargo build --release --bin zapc
ln -sf zapc target/release/capnpc-rust # plugin discovery name
cd benchmark && PATH=../target/release:$PATH \
capnp compile -orust eval.zap catrank.zap carsales.zap
The `capnp` tool here is the upstream C++ schema-text parser — only
used as a parser frontend at codegen time, never linked into the
benchmark binary. Runtime + build = 100% zap/zapc only.
Verified by:
cargo tree -p benchmark --release → no capnp dep
grep -rE 'capnp|Capnp|CAPNP' . → 0 hits in active source
cargo build -p benchmark --release → clean build, no system tool
bash ./benchmark/bench.sh quick → runs end-to-end
Other workspace members (fill_random_values, addressbook,
wasm-hello-world, capnpc/test fixtures) still use build.rs schema
compilation at build time; they require a `zap` binary in PATH.
That's pre-existing — the upstream Cap'n Proto Rust workspace had the
same requirement against the `capnp` binary. Out of scope for this PR.
1823 lines
75 KiB
Rust
1823 lines
75 KiB
Rust
// @generated by the zapc-rust plugin to the ZAP schema compiler.
|
|
// DO NOT EDIT.
|
|
// source: carsales.zap
|
|
|
|
|
|
pub mod parking_lot {
|
|
#[derive(Copy, Clone)]
|
|
pub struct Owned(());
|
|
impl ::zap::introspect::Introspect for Owned { fn introspect() -> ::zap::introspect::Type { ::zap::introspect::TypeVariant::Struct(::zap::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types, annotation_types: _private::get_annotation_types }).into() } }
|
|
impl ::zap::traits::Owned for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; }
|
|
impl ::zap::traits::OwnedStruct for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; }
|
|
impl ::zap::traits::Pipelined for Owned { type Pipeline = Pipeline; }
|
|
|
|
pub struct Reader<'a> { reader: ::zap::private::layout::StructReader<'a> }
|
|
impl <> ::core::marker::Copy for Reader<'_,> {}
|
|
impl <> ::core::clone::Clone for Reader<'_,> {
|
|
fn clone(&self) -> Self { *self }
|
|
}
|
|
|
|
impl <> ::zap::traits::HasTypeId for Reader<'_,> {
|
|
const TYPE_ID: u64 = _private::TYPE_ID;
|
|
}
|
|
impl <'a,> ::core::convert::From<::zap::private::layout::StructReader<'a>> for Reader<'a,> {
|
|
fn from(reader: ::zap::private::layout::StructReader<'a>) -> Self {
|
|
Self { reader, }
|
|
}
|
|
}
|
|
|
|
impl <'a,> ::core::convert::From<Reader<'a,>> for ::zap::dynamic_value::Reader<'a> {
|
|
fn from(reader: Reader<'a,>) -> Self {
|
|
Self::Struct(::zap::dynamic_struct::Reader::new(reader.reader, ::zap::schema::StructSchema::new(::zap::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>})))
|
|
}
|
|
}
|
|
|
|
impl <> ::core::fmt::Debug for Reader<'_,> {
|
|
fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::result::Result<(), ::core::fmt::Error> {
|
|
core::fmt::Debug::fmt(&::core::convert::Into::<::zap::dynamic_value::Reader<'_>>::into(*self), f)
|
|
}
|
|
}
|
|
|
|
impl <'a,> ::zap::traits::FromPointerReader<'a> for Reader<'a,> {
|
|
fn get_from_pointer(reader: &::zap::private::layout::PointerReader<'a>, default: ::core::option::Option<&'a [::zap::Word]>) -> ::zap::Result<Self> {
|
|
::core::result::Result::Ok(reader.get_struct(default)?.into())
|
|
}
|
|
}
|
|
|
|
impl <'a,> ::zap::traits::IntoInternalStructReader<'a> for Reader<'a,> {
|
|
fn into_internal_struct_reader(self) -> ::zap::private::layout::StructReader<'a> {
|
|
self.reader
|
|
}
|
|
}
|
|
|
|
impl <'a,> ::zap::traits::Imbue<'a> for Reader<'a,> {
|
|
fn imbue(&mut self, cap_table: &'a ::zap::private::layout::CapTable) {
|
|
self.reader.imbue(::zap::private::layout::CapTableReader::Plain(cap_table))
|
|
}
|
|
}
|
|
|
|
impl <'a,> Reader<'a,> {
|
|
pub fn reborrow(&self) -> Reader<'_,> {
|
|
Self { .. *self }
|
|
}
|
|
|
|
pub fn total_size(&self) -> ::zap::Result<::zap::MessageSize> {
|
|
self.reader.total_size()
|
|
}
|
|
#[inline]
|
|
pub fn get_cars(self) -> ::zap::Result<::zap::struct_list::Reader<'a,crate::carsales_zap::car::Owned>> {
|
|
::zap::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(0), ::core::option::Option::None)
|
|
}
|
|
#[inline]
|
|
pub fn has_cars(&self) -> bool {
|
|
!self.reader.get_pointer_field(0).is_null()
|
|
}
|
|
}
|
|
|
|
pub struct Builder<'a> { builder: ::zap::private::layout::StructBuilder<'a> }
|
|
impl <> ::zap::traits::HasStructSize for Builder<'_,> {
|
|
const STRUCT_SIZE: ::zap::private::layout::StructSize = ::zap::private::layout::StructSize { data: 0, pointers: 1 };
|
|
}
|
|
impl <> ::zap::traits::HasTypeId for Builder<'_,> {
|
|
const TYPE_ID: u64 = _private::TYPE_ID;
|
|
}
|
|
impl <'a,> ::core::convert::From<::zap::private::layout::StructBuilder<'a>> for Builder<'a,> {
|
|
fn from(builder: ::zap::private::layout::StructBuilder<'a>) -> Self {
|
|
Self { builder, }
|
|
}
|
|
}
|
|
|
|
impl <'a,> ::core::convert::From<Builder<'a,>> for ::zap::dynamic_value::Builder<'a> {
|
|
fn from(builder: Builder<'a,>) -> Self {
|
|
Self::Struct(::zap::dynamic_struct::Builder::new(builder.builder, ::zap::schema::StructSchema::new(::zap::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>})))
|
|
}
|
|
}
|
|
|
|
impl <'a,> ::zap::traits::ImbueMut<'a> for Builder<'a,> {
|
|
fn imbue_mut(&mut self, cap_table: &'a mut ::zap::private::layout::CapTable) {
|
|
self.builder.imbue(::zap::private::layout::CapTableBuilder::Plain(cap_table))
|
|
}
|
|
}
|
|
|
|
impl <'a,> ::zap::traits::FromPointerBuilder<'a> for Builder<'a,> {
|
|
fn init_pointer(builder: ::zap::private::layout::PointerBuilder<'a>, _size: u32) -> Self {
|
|
builder.init_struct(<Self as ::zap::traits::HasStructSize>::STRUCT_SIZE).into()
|
|
}
|
|
fn get_from_pointer(builder: ::zap::private::layout::PointerBuilder<'a>, default: ::core::option::Option<&'a [::zap::Word]>) -> ::zap::Result<Self> {
|
|
::core::result::Result::Ok(builder.get_struct(<Self as ::zap::traits::HasStructSize>::STRUCT_SIZE, default)?.into())
|
|
}
|
|
}
|
|
|
|
impl <> ::zap::traits::SetterInput<Owned<>> for Reader<'_,> {
|
|
fn set_pointer_builder(mut pointer: ::zap::private::layout::PointerBuilder<'_>, value: Self, canonicalize: bool) -> ::zap::Result<()> { pointer.set_struct(&value.reader, canonicalize) }
|
|
}
|
|
|
|
impl <'a,> Builder<'a,> {
|
|
pub fn into_reader(self) -> Reader<'a,> {
|
|
self.builder.into_reader().into()
|
|
}
|
|
pub fn reborrow(&mut self) -> Builder<'_,> {
|
|
Builder { builder: self.builder.reborrow() }
|
|
}
|
|
pub fn reborrow_as_reader(&self) -> Reader<'_,> {
|
|
self.builder.as_reader().into()
|
|
}
|
|
|
|
pub fn total_size(&self) -> ::zap::Result<::zap::MessageSize> {
|
|
self.builder.as_reader().total_size()
|
|
}
|
|
#[inline]
|
|
pub fn get_cars(self) -> ::zap::Result<::zap::struct_list::Builder<'a,crate::carsales_zap::car::Owned>> {
|
|
::zap::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(0), ::core::option::Option::None)
|
|
}
|
|
#[inline]
|
|
pub fn set_cars(&mut self, value: ::zap::struct_list::Reader<'_,crate::carsales_zap::car::Owned>) -> ::zap::Result<()> {
|
|
::zap::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(0), value, false)
|
|
}
|
|
#[inline]
|
|
pub fn init_cars(self, size: u32) -> ::zap::struct_list::Builder<'a,crate::carsales_zap::car::Owned> {
|
|
::zap::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(0), size)
|
|
}
|
|
#[inline]
|
|
pub fn has_cars(&self) -> bool {
|
|
!self.builder.is_pointer_field_null(0)
|
|
}
|
|
}
|
|
|
|
pub struct Pipeline { _typeless: ::zap::any_pointer::Pipeline }
|
|
impl ::zap::capability::FromTypelessPipeline for Pipeline {
|
|
fn new(typeless: ::zap::any_pointer::Pipeline) -> Self {
|
|
Self { _typeless: typeless, }
|
|
}
|
|
}
|
|
impl Pipeline {
|
|
}
|
|
mod _private {
|
|
pub static ENCODED_NODE: [::zap::Word; 38] = [
|
|
::zap::word(0, 0, 0, 0, 6, 0, 6, 0),
|
|
::zap::word(34, 96, 13, 40, 83, 183, 198, 244),
|
|
::zap::word(15, 0, 0, 0, 1, 0, 0, 0),
|
|
::zap::word(201, 35, 103, 163, 198, 221, 117, 255),
|
|
::zap::word(1, 0, 7, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(170, 4, 0, 0, 212, 4, 0, 0),
|
|
::zap::word(21, 0, 0, 0, 210, 0, 0, 0),
|
|
::zap::word(33, 0, 0, 0, 7, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(29, 0, 0, 0, 63, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(99, 97, 114, 115, 97, 108, 101, 115),
|
|
::zap::word(46, 99, 97, 112, 110, 112, 58, 80),
|
|
::zap::word(97, 114, 107, 105, 110, 103, 76, 111),
|
|
::zap::word(116, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 1, 0, 1, 0),
|
|
::zap::word(4, 0, 0, 0, 3, 0, 4, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 1, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(13, 0, 0, 0, 42, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(8, 0, 0, 0, 3, 0, 1, 0),
|
|
::zap::word(36, 0, 0, 0, 2, 0, 1, 0),
|
|
::zap::word(99, 97, 114, 115, 0, 0, 0, 0),
|
|
::zap::word(14, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 3, 0, 1, 0),
|
|
::zap::word(16, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(221, 233, 19, 36, 70, 176, 153, 153),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(14, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
];
|
|
pub fn get_field_types(index: u16) -> ::zap::introspect::Type {
|
|
match index {
|
|
0 => <::zap::struct_list::Owned<crate::carsales_zap::car::Owned> as ::zap::introspect::Introspect>::introspect(),
|
|
_ => ::zap::introspect::panic_invalid_field_index(index),
|
|
}
|
|
}
|
|
pub fn get_annotation_types(child_index: Option<u16>, index: u32) -> ::zap::introspect::Type {
|
|
::zap::introspect::panic_invalid_annotation_indices(child_index, index)
|
|
}
|
|
pub static ARENA: ::zap::private::arena::GeneratedCodeArena = ::zap::private::arena::GeneratedCodeArena::new(&ENCODED_NODE);
|
|
pub static RAW_SCHEMA: ::zap::introspect::RawStructSchema = ::zap::introspect::RawStructSchema::new(
|
|
&ARENA,
|
|
NONUNION_MEMBERS,
|
|
MEMBERS_BY_DISCRIMINANT,
|
|
MEMBERS_BY_NAME
|
|
);
|
|
pub static NONUNION_MEMBERS : &[u16] = &[0];
|
|
pub static MEMBERS_BY_DISCRIMINANT : &[u16] = &[];
|
|
pub static MEMBERS_BY_NAME : &[u16] = &[0];
|
|
pub const TYPE_ID: u64 = 0xf4c6_b753_280d_6022;
|
|
}
|
|
}
|
|
|
|
pub mod total_value {
|
|
#[derive(Copy, Clone)]
|
|
pub struct Owned(());
|
|
impl ::zap::introspect::Introspect for Owned { fn introspect() -> ::zap::introspect::Type { ::zap::introspect::TypeVariant::Struct(::zap::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types, annotation_types: _private::get_annotation_types }).into() } }
|
|
impl ::zap::traits::Owned for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; }
|
|
impl ::zap::traits::OwnedStruct for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; }
|
|
impl ::zap::traits::Pipelined for Owned { type Pipeline = Pipeline; }
|
|
|
|
pub struct Reader<'a> { reader: ::zap::private::layout::StructReader<'a> }
|
|
impl <> ::core::marker::Copy for Reader<'_,> {}
|
|
impl <> ::core::clone::Clone for Reader<'_,> {
|
|
fn clone(&self) -> Self { *self }
|
|
}
|
|
|
|
impl <> ::zap::traits::HasTypeId for Reader<'_,> {
|
|
const TYPE_ID: u64 = _private::TYPE_ID;
|
|
}
|
|
impl <'a,> ::core::convert::From<::zap::private::layout::StructReader<'a>> for Reader<'a,> {
|
|
fn from(reader: ::zap::private::layout::StructReader<'a>) -> Self {
|
|
Self { reader, }
|
|
}
|
|
}
|
|
|
|
impl <'a,> ::core::convert::From<Reader<'a,>> for ::zap::dynamic_value::Reader<'a> {
|
|
fn from(reader: Reader<'a,>) -> Self {
|
|
Self::Struct(::zap::dynamic_struct::Reader::new(reader.reader, ::zap::schema::StructSchema::new(::zap::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>})))
|
|
}
|
|
}
|
|
|
|
impl <> ::core::fmt::Debug for Reader<'_,> {
|
|
fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::result::Result<(), ::core::fmt::Error> {
|
|
core::fmt::Debug::fmt(&::core::convert::Into::<::zap::dynamic_value::Reader<'_>>::into(*self), f)
|
|
}
|
|
}
|
|
|
|
impl <'a,> ::zap::traits::FromPointerReader<'a> for Reader<'a,> {
|
|
fn get_from_pointer(reader: &::zap::private::layout::PointerReader<'a>, default: ::core::option::Option<&'a [::zap::Word]>) -> ::zap::Result<Self> {
|
|
::core::result::Result::Ok(reader.get_struct(default)?.into())
|
|
}
|
|
}
|
|
|
|
impl <'a,> ::zap::traits::IntoInternalStructReader<'a> for Reader<'a,> {
|
|
fn into_internal_struct_reader(self) -> ::zap::private::layout::StructReader<'a> {
|
|
self.reader
|
|
}
|
|
}
|
|
|
|
impl <'a,> ::zap::traits::Imbue<'a> for Reader<'a,> {
|
|
fn imbue(&mut self, cap_table: &'a ::zap::private::layout::CapTable) {
|
|
self.reader.imbue(::zap::private::layout::CapTableReader::Plain(cap_table))
|
|
}
|
|
}
|
|
|
|
impl <> Reader<'_,> {
|
|
pub fn reborrow(&self) -> Reader<'_,> {
|
|
Self { .. *self }
|
|
}
|
|
|
|
pub fn total_size(&self) -> ::zap::Result<::zap::MessageSize> {
|
|
self.reader.total_size()
|
|
}
|
|
#[inline]
|
|
pub fn get_amount(self) -> u64 {
|
|
self.reader.get_data_field::<u64>(0)
|
|
}
|
|
}
|
|
|
|
pub struct Builder<'a> { builder: ::zap::private::layout::StructBuilder<'a> }
|
|
impl <> ::zap::traits::HasStructSize for Builder<'_,> {
|
|
const STRUCT_SIZE: ::zap::private::layout::StructSize = ::zap::private::layout::StructSize { data: 1, pointers: 0 };
|
|
}
|
|
impl <> ::zap::traits::HasTypeId for Builder<'_,> {
|
|
const TYPE_ID: u64 = _private::TYPE_ID;
|
|
}
|
|
impl <'a,> ::core::convert::From<::zap::private::layout::StructBuilder<'a>> for Builder<'a,> {
|
|
fn from(builder: ::zap::private::layout::StructBuilder<'a>) -> Self {
|
|
Self { builder, }
|
|
}
|
|
}
|
|
|
|
impl <'a,> ::core::convert::From<Builder<'a,>> for ::zap::dynamic_value::Builder<'a> {
|
|
fn from(builder: Builder<'a,>) -> Self {
|
|
Self::Struct(::zap::dynamic_struct::Builder::new(builder.builder, ::zap::schema::StructSchema::new(::zap::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>})))
|
|
}
|
|
}
|
|
|
|
impl <'a,> ::zap::traits::ImbueMut<'a> for Builder<'a,> {
|
|
fn imbue_mut(&mut self, cap_table: &'a mut ::zap::private::layout::CapTable) {
|
|
self.builder.imbue(::zap::private::layout::CapTableBuilder::Plain(cap_table))
|
|
}
|
|
}
|
|
|
|
impl <'a,> ::zap::traits::FromPointerBuilder<'a> for Builder<'a,> {
|
|
fn init_pointer(builder: ::zap::private::layout::PointerBuilder<'a>, _size: u32) -> Self {
|
|
builder.init_struct(<Self as ::zap::traits::HasStructSize>::STRUCT_SIZE).into()
|
|
}
|
|
fn get_from_pointer(builder: ::zap::private::layout::PointerBuilder<'a>, default: ::core::option::Option<&'a [::zap::Word]>) -> ::zap::Result<Self> {
|
|
::core::result::Result::Ok(builder.get_struct(<Self as ::zap::traits::HasStructSize>::STRUCT_SIZE, default)?.into())
|
|
}
|
|
}
|
|
|
|
impl <> ::zap::traits::SetterInput<Owned<>> for Reader<'_,> {
|
|
fn set_pointer_builder(mut pointer: ::zap::private::layout::PointerBuilder<'_>, value: Self, canonicalize: bool) -> ::zap::Result<()> { pointer.set_struct(&value.reader, canonicalize) }
|
|
}
|
|
|
|
impl <'a,> Builder<'a,> {
|
|
pub fn into_reader(self) -> Reader<'a,> {
|
|
self.builder.into_reader().into()
|
|
}
|
|
pub fn reborrow(&mut self) -> Builder<'_,> {
|
|
Builder { builder: self.builder.reborrow() }
|
|
}
|
|
pub fn reborrow_as_reader(&self) -> Reader<'_,> {
|
|
self.builder.as_reader().into()
|
|
}
|
|
|
|
pub fn total_size(&self) -> ::zap::Result<::zap::MessageSize> {
|
|
self.builder.as_reader().total_size()
|
|
}
|
|
#[inline]
|
|
pub fn get_amount(self) -> u64 {
|
|
self.builder.get_data_field::<u64>(0)
|
|
}
|
|
#[inline]
|
|
pub fn set_amount(&mut self, value: u64) {
|
|
self.builder.set_data_field::<u64>(0, value);
|
|
}
|
|
}
|
|
|
|
pub struct Pipeline { _typeless: ::zap::any_pointer::Pipeline }
|
|
impl ::zap::capability::FromTypelessPipeline for Pipeline {
|
|
fn new(typeless: ::zap::any_pointer::Pipeline) -> Self {
|
|
Self { _typeless: typeless, }
|
|
}
|
|
}
|
|
impl Pipeline {
|
|
}
|
|
mod _private {
|
|
pub static ENCODED_NODE: [::zap::Word; 34] = [
|
|
::zap::word(0, 0, 0, 0, 6, 0, 6, 0),
|
|
::zap::word(11, 142, 190, 105, 123, 104, 232, 193),
|
|
::zap::word(15, 0, 0, 0, 1, 0, 1, 0),
|
|
::zap::word(201, 35, 103, 163, 198, 221, 117, 255),
|
|
::zap::word(0, 0, 7, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(214, 4, 0, 0, 255, 4, 0, 0),
|
|
::zap::word(21, 0, 0, 0, 210, 0, 0, 0),
|
|
::zap::word(33, 0, 0, 0, 7, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(29, 0, 0, 0, 63, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(99, 97, 114, 115, 97, 108, 101, 115),
|
|
::zap::word(46, 99, 97, 112, 110, 112, 58, 84),
|
|
::zap::word(111, 116, 97, 108, 86, 97, 108, 117),
|
|
::zap::word(101, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 1, 0, 1, 0),
|
|
::zap::word(4, 0, 0, 0, 3, 0, 4, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 1, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(13, 0, 0, 0, 58, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(8, 0, 0, 0, 3, 0, 1, 0),
|
|
::zap::word(20, 0, 0, 0, 2, 0, 1, 0),
|
|
::zap::word(97, 109, 111, 117, 110, 116, 0, 0),
|
|
::zap::word(9, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(9, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
];
|
|
pub fn get_field_types(index: u16) -> ::zap::introspect::Type {
|
|
match index {
|
|
0 => <u64 as ::zap::introspect::Introspect>::introspect(),
|
|
_ => ::zap::introspect::panic_invalid_field_index(index),
|
|
}
|
|
}
|
|
pub fn get_annotation_types(child_index: Option<u16>, index: u32) -> ::zap::introspect::Type {
|
|
::zap::introspect::panic_invalid_annotation_indices(child_index, index)
|
|
}
|
|
pub static ARENA: ::zap::private::arena::GeneratedCodeArena = ::zap::private::arena::GeneratedCodeArena::new(&ENCODED_NODE);
|
|
pub static RAW_SCHEMA: ::zap::introspect::RawStructSchema = ::zap::introspect::RawStructSchema::new(
|
|
&ARENA,
|
|
NONUNION_MEMBERS,
|
|
MEMBERS_BY_DISCRIMINANT,
|
|
MEMBERS_BY_NAME
|
|
);
|
|
pub static NONUNION_MEMBERS : &[u16] = &[0];
|
|
pub static MEMBERS_BY_DISCRIMINANT : &[u16] = &[];
|
|
pub static MEMBERS_BY_NAME : &[u16] = &[0];
|
|
pub const TYPE_ID: u64 = 0xc1e8_687b_69be_8e0b;
|
|
}
|
|
}
|
|
|
|
pub mod car {
|
|
#[derive(Copy, Clone)]
|
|
pub struct Owned(());
|
|
impl ::zap::introspect::Introspect for Owned { fn introspect() -> ::zap::introspect::Type { ::zap::introspect::TypeVariant::Struct(::zap::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types, annotation_types: _private::get_annotation_types }).into() } }
|
|
impl ::zap::traits::Owned for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; }
|
|
impl ::zap::traits::OwnedStruct for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; }
|
|
impl ::zap::traits::Pipelined for Owned { type Pipeline = Pipeline; }
|
|
|
|
pub struct Reader<'a> { reader: ::zap::private::layout::StructReader<'a> }
|
|
impl <> ::core::marker::Copy for Reader<'_,> {}
|
|
impl <> ::core::clone::Clone for Reader<'_,> {
|
|
fn clone(&self) -> Self { *self }
|
|
}
|
|
|
|
impl <> ::zap::traits::HasTypeId for Reader<'_,> {
|
|
const TYPE_ID: u64 = _private::TYPE_ID;
|
|
}
|
|
impl <'a,> ::core::convert::From<::zap::private::layout::StructReader<'a>> for Reader<'a,> {
|
|
fn from(reader: ::zap::private::layout::StructReader<'a>) -> Self {
|
|
Self { reader, }
|
|
}
|
|
}
|
|
|
|
impl <'a,> ::core::convert::From<Reader<'a,>> for ::zap::dynamic_value::Reader<'a> {
|
|
fn from(reader: Reader<'a,>) -> Self {
|
|
Self::Struct(::zap::dynamic_struct::Reader::new(reader.reader, ::zap::schema::StructSchema::new(::zap::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>})))
|
|
}
|
|
}
|
|
|
|
impl <> ::core::fmt::Debug for Reader<'_,> {
|
|
fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::result::Result<(), ::core::fmt::Error> {
|
|
core::fmt::Debug::fmt(&::core::convert::Into::<::zap::dynamic_value::Reader<'_>>::into(*self), f)
|
|
}
|
|
}
|
|
|
|
impl <'a,> ::zap::traits::FromPointerReader<'a> for Reader<'a,> {
|
|
fn get_from_pointer(reader: &::zap::private::layout::PointerReader<'a>, default: ::core::option::Option<&'a [::zap::Word]>) -> ::zap::Result<Self> {
|
|
::core::result::Result::Ok(reader.get_struct(default)?.into())
|
|
}
|
|
}
|
|
|
|
impl <'a,> ::zap::traits::IntoInternalStructReader<'a> for Reader<'a,> {
|
|
fn into_internal_struct_reader(self) -> ::zap::private::layout::StructReader<'a> {
|
|
self.reader
|
|
}
|
|
}
|
|
|
|
impl <'a,> ::zap::traits::Imbue<'a> for Reader<'a,> {
|
|
fn imbue(&mut self, cap_table: &'a ::zap::private::layout::CapTable) {
|
|
self.reader.imbue(::zap::private::layout::CapTableReader::Plain(cap_table))
|
|
}
|
|
}
|
|
|
|
impl <'a,> Reader<'a,> {
|
|
pub fn reborrow(&self) -> Reader<'_,> {
|
|
Self { .. *self }
|
|
}
|
|
|
|
pub fn total_size(&self) -> ::zap::Result<::zap::MessageSize> {
|
|
self.reader.total_size()
|
|
}
|
|
#[inline]
|
|
pub fn get_make(self) -> ::zap::Result<::zap::text::Reader<'a>> {
|
|
::zap::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(0), ::core::option::Option::None)
|
|
}
|
|
#[inline]
|
|
pub fn has_make(&self) -> bool {
|
|
!self.reader.get_pointer_field(0).is_null()
|
|
}
|
|
#[inline]
|
|
pub fn get_model(self) -> ::zap::Result<::zap::text::Reader<'a>> {
|
|
::zap::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(1), ::core::option::Option::None)
|
|
}
|
|
#[inline]
|
|
pub fn has_model(&self) -> bool {
|
|
!self.reader.get_pointer_field(1).is_null()
|
|
}
|
|
#[inline]
|
|
pub fn get_color(self) -> ::core::result::Result<crate::carsales_zap::Color,::zap::NotInSchema> {
|
|
::core::convert::TryInto::try_into(self.reader.get_data_field::<u16>(0))
|
|
}
|
|
#[inline]
|
|
pub fn get_seats(self) -> u8 {
|
|
self.reader.get_data_field::<u8>(2)
|
|
}
|
|
#[inline]
|
|
pub fn get_doors(self) -> u8 {
|
|
self.reader.get_data_field::<u8>(3)
|
|
}
|
|
#[inline]
|
|
pub fn get_wheels(self) -> ::zap::Result<::zap::struct_list::Reader<'a,crate::carsales_zap::wheel::Owned>> {
|
|
::zap::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(2), ::core::option::Option::None)
|
|
}
|
|
#[inline]
|
|
pub fn has_wheels(&self) -> bool {
|
|
!self.reader.get_pointer_field(2).is_null()
|
|
}
|
|
#[inline]
|
|
pub fn get_length(self) -> u16 {
|
|
self.reader.get_data_field::<u16>(2)
|
|
}
|
|
#[inline]
|
|
pub fn get_width(self) -> u16 {
|
|
self.reader.get_data_field::<u16>(3)
|
|
}
|
|
#[inline]
|
|
pub fn get_height(self) -> u16 {
|
|
self.reader.get_data_field::<u16>(4)
|
|
}
|
|
#[inline]
|
|
pub fn get_weight(self) -> u32 {
|
|
self.reader.get_data_field::<u32>(3)
|
|
}
|
|
#[inline]
|
|
pub fn get_engine(self) -> ::zap::Result<crate::carsales_zap::engine::Reader<'a>> {
|
|
::zap::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(3), ::core::option::Option::None)
|
|
}
|
|
#[inline]
|
|
pub fn has_engine(&self) -> bool {
|
|
!self.reader.get_pointer_field(3).is_null()
|
|
}
|
|
#[inline]
|
|
pub fn get_fuel_capacity(self) -> f32 {
|
|
self.reader.get_data_field::<f32>(4)
|
|
}
|
|
#[inline]
|
|
pub fn get_fuel_level(self) -> f32 {
|
|
self.reader.get_data_field::<f32>(5)
|
|
}
|
|
#[inline]
|
|
pub fn get_has_power_windows(self) -> bool {
|
|
self.reader.get_bool_field(80)
|
|
}
|
|
#[inline]
|
|
pub fn get_has_power_steering(self) -> bool {
|
|
self.reader.get_bool_field(81)
|
|
}
|
|
#[inline]
|
|
pub fn get_has_cruise_control(self) -> bool {
|
|
self.reader.get_bool_field(82)
|
|
}
|
|
#[inline]
|
|
pub fn get_cup_holders(self) -> u8 {
|
|
self.reader.get_data_field::<u8>(11)
|
|
}
|
|
#[inline]
|
|
pub fn get_has_nav_system(self) -> bool {
|
|
self.reader.get_bool_field(83)
|
|
}
|
|
}
|
|
|
|
pub struct Builder<'a> { builder: ::zap::private::layout::StructBuilder<'a> }
|
|
impl <> ::zap::traits::HasStructSize for Builder<'_,> {
|
|
const STRUCT_SIZE: ::zap::private::layout::StructSize = ::zap::private::layout::StructSize { data: 3, pointers: 4 };
|
|
}
|
|
impl <> ::zap::traits::HasTypeId for Builder<'_,> {
|
|
const TYPE_ID: u64 = _private::TYPE_ID;
|
|
}
|
|
impl <'a,> ::core::convert::From<::zap::private::layout::StructBuilder<'a>> for Builder<'a,> {
|
|
fn from(builder: ::zap::private::layout::StructBuilder<'a>) -> Self {
|
|
Self { builder, }
|
|
}
|
|
}
|
|
|
|
impl <'a,> ::core::convert::From<Builder<'a,>> for ::zap::dynamic_value::Builder<'a> {
|
|
fn from(builder: Builder<'a,>) -> Self {
|
|
Self::Struct(::zap::dynamic_struct::Builder::new(builder.builder, ::zap::schema::StructSchema::new(::zap::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>})))
|
|
}
|
|
}
|
|
|
|
impl <'a,> ::zap::traits::ImbueMut<'a> for Builder<'a,> {
|
|
fn imbue_mut(&mut self, cap_table: &'a mut ::zap::private::layout::CapTable) {
|
|
self.builder.imbue(::zap::private::layout::CapTableBuilder::Plain(cap_table))
|
|
}
|
|
}
|
|
|
|
impl <'a,> ::zap::traits::FromPointerBuilder<'a> for Builder<'a,> {
|
|
fn init_pointer(builder: ::zap::private::layout::PointerBuilder<'a>, _size: u32) -> Self {
|
|
builder.init_struct(<Self as ::zap::traits::HasStructSize>::STRUCT_SIZE).into()
|
|
}
|
|
fn get_from_pointer(builder: ::zap::private::layout::PointerBuilder<'a>, default: ::core::option::Option<&'a [::zap::Word]>) -> ::zap::Result<Self> {
|
|
::core::result::Result::Ok(builder.get_struct(<Self as ::zap::traits::HasStructSize>::STRUCT_SIZE, default)?.into())
|
|
}
|
|
}
|
|
|
|
impl <> ::zap::traits::SetterInput<Owned<>> for Reader<'_,> {
|
|
fn set_pointer_builder(mut pointer: ::zap::private::layout::PointerBuilder<'_>, value: Self, canonicalize: bool) -> ::zap::Result<()> { pointer.set_struct(&value.reader, canonicalize) }
|
|
}
|
|
|
|
impl <'a,> Builder<'a,> {
|
|
pub fn into_reader(self) -> Reader<'a,> {
|
|
self.builder.into_reader().into()
|
|
}
|
|
pub fn reborrow(&mut self) -> Builder<'_,> {
|
|
Builder { builder: self.builder.reborrow() }
|
|
}
|
|
pub fn reborrow_as_reader(&self) -> Reader<'_,> {
|
|
self.builder.as_reader().into()
|
|
}
|
|
|
|
pub fn total_size(&self) -> ::zap::Result<::zap::MessageSize> {
|
|
self.builder.as_reader().total_size()
|
|
}
|
|
#[inline]
|
|
pub fn get_make(self) -> ::zap::Result<::zap::text::Builder<'a>> {
|
|
::zap::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(0), ::core::option::Option::None)
|
|
}
|
|
#[inline]
|
|
pub fn set_make(&mut self, value: impl ::zap::traits::SetterInput<::zap::text::Owned>) {
|
|
::zap::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(0), value, false).unwrap()
|
|
}
|
|
#[inline]
|
|
pub fn init_make(self, size: u32) -> ::zap::text::Builder<'a> {
|
|
self.builder.get_pointer_field(0).init_text(size)
|
|
}
|
|
#[inline]
|
|
pub fn has_make(&self) -> bool {
|
|
!self.builder.is_pointer_field_null(0)
|
|
}
|
|
#[inline]
|
|
pub fn get_model(self) -> ::zap::Result<::zap::text::Builder<'a>> {
|
|
::zap::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(1), ::core::option::Option::None)
|
|
}
|
|
#[inline]
|
|
pub fn set_model(&mut self, value: impl ::zap::traits::SetterInput<::zap::text::Owned>) {
|
|
::zap::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(1), value, false).unwrap()
|
|
}
|
|
#[inline]
|
|
pub fn init_model(self, size: u32) -> ::zap::text::Builder<'a> {
|
|
self.builder.get_pointer_field(1).init_text(size)
|
|
}
|
|
#[inline]
|
|
pub fn has_model(&self) -> bool {
|
|
!self.builder.is_pointer_field_null(1)
|
|
}
|
|
#[inline]
|
|
pub fn get_color(self) -> ::core::result::Result<crate::carsales_zap::Color,::zap::NotInSchema> {
|
|
::core::convert::TryInto::try_into(self.builder.get_data_field::<u16>(0))
|
|
}
|
|
#[inline]
|
|
pub fn set_color(&mut self, value: crate::carsales_zap::Color) {
|
|
self.builder.set_data_field::<u16>(0, value as u16);
|
|
}
|
|
#[inline]
|
|
pub fn get_seats(self) -> u8 {
|
|
self.builder.get_data_field::<u8>(2)
|
|
}
|
|
#[inline]
|
|
pub fn set_seats(&mut self, value: u8) {
|
|
self.builder.set_data_field::<u8>(2, value);
|
|
}
|
|
#[inline]
|
|
pub fn get_doors(self) -> u8 {
|
|
self.builder.get_data_field::<u8>(3)
|
|
}
|
|
#[inline]
|
|
pub fn set_doors(&mut self, value: u8) {
|
|
self.builder.set_data_field::<u8>(3, value);
|
|
}
|
|
#[inline]
|
|
pub fn get_wheels(self) -> ::zap::Result<::zap::struct_list::Builder<'a,crate::carsales_zap::wheel::Owned>> {
|
|
::zap::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(2), ::core::option::Option::None)
|
|
}
|
|
#[inline]
|
|
pub fn set_wheels(&mut self, value: ::zap::struct_list::Reader<'_,crate::carsales_zap::wheel::Owned>) -> ::zap::Result<()> {
|
|
::zap::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(2), value, false)
|
|
}
|
|
#[inline]
|
|
pub fn init_wheels(self, size: u32) -> ::zap::struct_list::Builder<'a,crate::carsales_zap::wheel::Owned> {
|
|
::zap::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(2), size)
|
|
}
|
|
#[inline]
|
|
pub fn has_wheels(&self) -> bool {
|
|
!self.builder.is_pointer_field_null(2)
|
|
}
|
|
#[inline]
|
|
pub fn get_length(self) -> u16 {
|
|
self.builder.get_data_field::<u16>(2)
|
|
}
|
|
#[inline]
|
|
pub fn set_length(&mut self, value: u16) {
|
|
self.builder.set_data_field::<u16>(2, value);
|
|
}
|
|
#[inline]
|
|
pub fn get_width(self) -> u16 {
|
|
self.builder.get_data_field::<u16>(3)
|
|
}
|
|
#[inline]
|
|
pub fn set_width(&mut self, value: u16) {
|
|
self.builder.set_data_field::<u16>(3, value);
|
|
}
|
|
#[inline]
|
|
pub fn get_height(self) -> u16 {
|
|
self.builder.get_data_field::<u16>(4)
|
|
}
|
|
#[inline]
|
|
pub fn set_height(&mut self, value: u16) {
|
|
self.builder.set_data_field::<u16>(4, value);
|
|
}
|
|
#[inline]
|
|
pub fn get_weight(self) -> u32 {
|
|
self.builder.get_data_field::<u32>(3)
|
|
}
|
|
#[inline]
|
|
pub fn set_weight(&mut self, value: u32) {
|
|
self.builder.set_data_field::<u32>(3, value);
|
|
}
|
|
#[inline]
|
|
pub fn get_engine(self) -> ::zap::Result<crate::carsales_zap::engine::Builder<'a>> {
|
|
::zap::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(3), ::core::option::Option::None)
|
|
}
|
|
#[inline]
|
|
pub fn set_engine(&mut self, value: crate::carsales_zap::engine::Reader<'_>) -> ::zap::Result<()> {
|
|
::zap::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(3), value, false)
|
|
}
|
|
#[inline]
|
|
pub fn init_engine(self, ) -> crate::carsales_zap::engine::Builder<'a> {
|
|
::zap::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(3), 0)
|
|
}
|
|
#[inline]
|
|
pub fn has_engine(&self) -> bool {
|
|
!self.builder.is_pointer_field_null(3)
|
|
}
|
|
#[inline]
|
|
pub fn get_fuel_capacity(self) -> f32 {
|
|
self.builder.get_data_field::<f32>(4)
|
|
}
|
|
#[inline]
|
|
pub fn set_fuel_capacity(&mut self, value: f32) {
|
|
self.builder.set_data_field::<f32>(4, value);
|
|
}
|
|
#[inline]
|
|
pub fn get_fuel_level(self) -> f32 {
|
|
self.builder.get_data_field::<f32>(5)
|
|
}
|
|
#[inline]
|
|
pub fn set_fuel_level(&mut self, value: f32) {
|
|
self.builder.set_data_field::<f32>(5, value);
|
|
}
|
|
#[inline]
|
|
pub fn get_has_power_windows(self) -> bool {
|
|
self.builder.get_bool_field(80)
|
|
}
|
|
#[inline]
|
|
pub fn set_has_power_windows(&mut self, value: bool) {
|
|
self.builder.set_bool_field(80, value);
|
|
}
|
|
#[inline]
|
|
pub fn get_has_power_steering(self) -> bool {
|
|
self.builder.get_bool_field(81)
|
|
}
|
|
#[inline]
|
|
pub fn set_has_power_steering(&mut self, value: bool) {
|
|
self.builder.set_bool_field(81, value);
|
|
}
|
|
#[inline]
|
|
pub fn get_has_cruise_control(self) -> bool {
|
|
self.builder.get_bool_field(82)
|
|
}
|
|
#[inline]
|
|
pub fn set_has_cruise_control(&mut self, value: bool) {
|
|
self.builder.set_bool_field(82, value);
|
|
}
|
|
#[inline]
|
|
pub fn get_cup_holders(self) -> u8 {
|
|
self.builder.get_data_field::<u8>(11)
|
|
}
|
|
#[inline]
|
|
pub fn set_cup_holders(&mut self, value: u8) {
|
|
self.builder.set_data_field::<u8>(11, value);
|
|
}
|
|
#[inline]
|
|
pub fn get_has_nav_system(self) -> bool {
|
|
self.builder.get_bool_field(83)
|
|
}
|
|
#[inline]
|
|
pub fn set_has_nav_system(&mut self, value: bool) {
|
|
self.builder.set_bool_field(83, value);
|
|
}
|
|
}
|
|
|
|
pub struct Pipeline { _typeless: ::zap::any_pointer::Pipeline }
|
|
impl ::zap::capability::FromTypelessPipeline for Pipeline {
|
|
fn new(typeless: ::zap::any_pointer::Pipeline) -> Self {
|
|
Self { _typeless: typeless, }
|
|
}
|
|
}
|
|
impl Pipeline {
|
|
pub fn get_engine(&self) -> crate::carsales_zap::engine::Pipeline {
|
|
::zap::capability::FromTypelessPipeline::new(self._typeless.get_pointer_field(3))
|
|
}
|
|
}
|
|
mod _private {
|
|
pub static ENCODED_NODE: [::zap::Word; 301] = [
|
|
::zap::word(0, 0, 0, 0, 6, 0, 6, 0),
|
|
::zap::word(221, 233, 19, 36, 70, 176, 153, 153),
|
|
::zap::word(15, 0, 0, 0, 1, 0, 3, 0),
|
|
::zap::word(201, 35, 103, 163, 198, 221, 117, 255),
|
|
::zap::word(4, 0, 7, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(1, 5, 0, 0, 159, 6, 0, 0),
|
|
::zap::word(21, 0, 0, 0, 154, 0, 0, 0),
|
|
::zap::word(29, 0, 0, 0, 7, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(25, 0, 0, 0, 247, 3, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(99, 97, 114, 115, 97, 108, 101, 115),
|
|
::zap::word(46, 99, 97, 112, 110, 112, 58, 67),
|
|
::zap::word(97, 114, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 1, 0, 1, 0),
|
|
::zap::word(72, 0, 0, 0, 3, 0, 4, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 1, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(233, 1, 0, 0, 42, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(228, 1, 0, 0, 3, 0, 1, 0),
|
|
::zap::word(240, 1, 0, 0, 2, 0, 1, 0),
|
|
::zap::word(1, 0, 0, 0, 1, 0, 0, 0),
|
|
::zap::word(0, 0, 1, 0, 1, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(237, 1, 0, 0, 50, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(232, 1, 0, 0, 3, 0, 1, 0),
|
|
::zap::word(244, 1, 0, 0, 2, 0, 1, 0),
|
|
::zap::word(2, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 1, 0, 2, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(241, 1, 0, 0, 50, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(236, 1, 0, 0, 3, 0, 1, 0),
|
|
::zap::word(248, 1, 0, 0, 2, 0, 1, 0),
|
|
::zap::word(3, 0, 0, 0, 2, 0, 0, 0),
|
|
::zap::word(0, 0, 1, 0, 3, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(245, 1, 0, 0, 50, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(240, 1, 0, 0, 3, 0, 1, 0),
|
|
::zap::word(252, 1, 0, 0, 2, 0, 1, 0),
|
|
::zap::word(4, 0, 0, 0, 3, 0, 0, 0),
|
|
::zap::word(0, 0, 1, 0, 4, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(249, 1, 0, 0, 50, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(244, 1, 0, 0, 3, 0, 1, 0),
|
|
::zap::word(0, 2, 0, 0, 2, 0, 1, 0),
|
|
::zap::word(5, 0, 0, 0, 2, 0, 0, 0),
|
|
::zap::word(0, 0, 1, 0, 5, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(253, 1, 0, 0, 58, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(248, 1, 0, 0, 3, 0, 1, 0),
|
|
::zap::word(20, 2, 0, 0, 2, 0, 1, 0),
|
|
::zap::word(6, 0, 0, 0, 2, 0, 0, 0),
|
|
::zap::word(0, 0, 1, 0, 6, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(17, 2, 0, 0, 58, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(12, 2, 0, 0, 3, 0, 1, 0),
|
|
::zap::word(24, 2, 0, 0, 2, 0, 1, 0),
|
|
::zap::word(7, 0, 0, 0, 3, 0, 0, 0),
|
|
::zap::word(0, 0, 1, 0, 7, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(21, 2, 0, 0, 50, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(16, 2, 0, 0, 3, 0, 1, 0),
|
|
::zap::word(28, 2, 0, 0, 2, 0, 1, 0),
|
|
::zap::word(8, 0, 0, 0, 4, 0, 0, 0),
|
|
::zap::word(0, 0, 1, 0, 8, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(25, 2, 0, 0, 58, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(20, 2, 0, 0, 3, 0, 1, 0),
|
|
::zap::word(32, 2, 0, 0, 2, 0, 1, 0),
|
|
::zap::word(9, 0, 0, 0, 3, 0, 0, 0),
|
|
::zap::word(0, 0, 1, 0, 9, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(29, 2, 0, 0, 58, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(24, 2, 0, 0, 3, 0, 1, 0),
|
|
::zap::word(36, 2, 0, 0, 2, 0, 1, 0),
|
|
::zap::word(10, 0, 0, 0, 3, 0, 0, 0),
|
|
::zap::word(0, 0, 1, 0, 10, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(33, 2, 0, 0, 58, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(28, 2, 0, 0, 3, 0, 1, 0),
|
|
::zap::word(40, 2, 0, 0, 2, 0, 1, 0),
|
|
::zap::word(11, 0, 0, 0, 4, 0, 0, 0),
|
|
::zap::word(0, 0, 1, 0, 11, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(37, 2, 0, 0, 106, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(36, 2, 0, 0, 3, 0, 1, 0),
|
|
::zap::word(48, 2, 0, 0, 2, 0, 1, 0),
|
|
::zap::word(12, 0, 0, 0, 5, 0, 0, 0),
|
|
::zap::word(0, 0, 1, 0, 12, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(45, 2, 0, 0, 82, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(44, 2, 0, 0, 3, 0, 1, 0),
|
|
::zap::word(56, 2, 0, 0, 2, 0, 1, 0),
|
|
::zap::word(13, 0, 0, 0, 80, 0, 0, 0),
|
|
::zap::word(0, 0, 1, 0, 13, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(53, 2, 0, 0, 130, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(52, 2, 0, 0, 3, 0, 1, 0),
|
|
::zap::word(64, 2, 0, 0, 2, 0, 1, 0),
|
|
::zap::word(14, 0, 0, 0, 81, 0, 0, 0),
|
|
::zap::word(0, 0, 1, 0, 14, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(61, 2, 0, 0, 138, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(64, 2, 0, 0, 3, 0, 1, 0),
|
|
::zap::word(76, 2, 0, 0, 2, 0, 1, 0),
|
|
::zap::word(15, 0, 0, 0, 82, 0, 0, 0),
|
|
::zap::word(0, 0, 1, 0, 15, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(73, 2, 0, 0, 138, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(76, 2, 0, 0, 3, 0, 1, 0),
|
|
::zap::word(88, 2, 0, 0, 2, 0, 1, 0),
|
|
::zap::word(16, 0, 0, 0, 11, 0, 0, 0),
|
|
::zap::word(0, 0, 1, 0, 16, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(85, 2, 0, 0, 90, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(84, 2, 0, 0, 3, 0, 1, 0),
|
|
::zap::word(96, 2, 0, 0, 2, 0, 1, 0),
|
|
::zap::word(17, 0, 0, 0, 83, 0, 0, 0),
|
|
::zap::word(0, 0, 1, 0, 17, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(93, 2, 0, 0, 106, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(92, 2, 0, 0, 3, 0, 1, 0),
|
|
::zap::word(104, 2, 0, 0, 2, 0, 1, 0),
|
|
::zap::word(109, 97, 107, 101, 0, 0, 0, 0),
|
|
::zap::word(12, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(12, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(109, 111, 100, 101, 108, 0, 0, 0),
|
|
::zap::word(12, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(12, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(99, 111, 108, 111, 114, 0, 0, 0),
|
|
::zap::word(15, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(189, 173, 163, 234, 67, 206, 155, 201),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(15, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(115, 101, 97, 116, 115, 0, 0, 0),
|
|
::zap::word(6, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(6, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(100, 111, 111, 114, 115, 0, 0, 0),
|
|
::zap::word(6, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(6, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(119, 104, 101, 101, 108, 115, 0, 0),
|
|
::zap::word(14, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 3, 0, 1, 0),
|
|
::zap::word(16, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(60, 117, 238, 170, 230, 59, 50, 215),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(14, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(108, 101, 110, 103, 116, 104, 0, 0),
|
|
::zap::word(7, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(7, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(119, 105, 100, 116, 104, 0, 0, 0),
|
|
::zap::word(7, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(7, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(104, 101, 105, 103, 104, 116, 0, 0),
|
|
::zap::word(7, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(7, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(119, 101, 105, 103, 104, 116, 0, 0),
|
|
::zap::word(8, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(8, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(101, 110, 103, 105, 110, 101, 0, 0),
|
|
::zap::word(16, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(37, 245, 174, 222, 118, 84, 79, 128),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(16, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(102, 117, 101, 108, 67, 97, 112, 97),
|
|
::zap::word(99, 105, 116, 121, 0, 0, 0, 0),
|
|
::zap::word(10, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(10, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(102, 117, 101, 108, 76, 101, 118, 101),
|
|
::zap::word(108, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(10, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(10, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(104, 97, 115, 80, 111, 119, 101, 114),
|
|
::zap::word(87, 105, 110, 100, 111, 119, 115, 0),
|
|
::zap::word(1, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(1, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(104, 97, 115, 80, 111, 119, 101, 114),
|
|
::zap::word(83, 116, 101, 101, 114, 105, 110, 103),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(1, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(1, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(104, 97, 115, 67, 114, 117, 105, 115),
|
|
::zap::word(101, 67, 111, 110, 116, 114, 111, 108),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(1, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(1, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(99, 117, 112, 72, 111, 108, 100, 101),
|
|
::zap::word(114, 115, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(6, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(6, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(104, 97, 115, 78, 97, 118, 83, 121),
|
|
::zap::word(115, 116, 101, 109, 0, 0, 0, 0),
|
|
::zap::word(1, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(1, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
];
|
|
pub fn get_field_types(index: u16) -> ::zap::introspect::Type {
|
|
match index {
|
|
0 => <::zap::text::Owned as ::zap::introspect::Introspect>::introspect(),
|
|
1 => <::zap::text::Owned as ::zap::introspect::Introspect>::introspect(),
|
|
2 => <crate::carsales_zap::Color as ::zap::introspect::Introspect>::introspect(),
|
|
3 => <u8 as ::zap::introspect::Introspect>::introspect(),
|
|
4 => <u8 as ::zap::introspect::Introspect>::introspect(),
|
|
5 => <::zap::struct_list::Owned<crate::carsales_zap::wheel::Owned> as ::zap::introspect::Introspect>::introspect(),
|
|
6 => <u16 as ::zap::introspect::Introspect>::introspect(),
|
|
7 => <u16 as ::zap::introspect::Introspect>::introspect(),
|
|
8 => <u16 as ::zap::introspect::Introspect>::introspect(),
|
|
9 => <u32 as ::zap::introspect::Introspect>::introspect(),
|
|
10 => <crate::carsales_zap::engine::Owned as ::zap::introspect::Introspect>::introspect(),
|
|
11 => <f32 as ::zap::introspect::Introspect>::introspect(),
|
|
12 => <f32 as ::zap::introspect::Introspect>::introspect(),
|
|
13 => <bool as ::zap::introspect::Introspect>::introspect(),
|
|
14 => <bool as ::zap::introspect::Introspect>::introspect(),
|
|
15 => <bool as ::zap::introspect::Introspect>::introspect(),
|
|
16 => <u8 as ::zap::introspect::Introspect>::introspect(),
|
|
17 => <bool as ::zap::introspect::Introspect>::introspect(),
|
|
_ => ::zap::introspect::panic_invalid_field_index(index),
|
|
}
|
|
}
|
|
pub fn get_annotation_types(child_index: Option<u16>, index: u32) -> ::zap::introspect::Type {
|
|
::zap::introspect::panic_invalid_annotation_indices(child_index, index)
|
|
}
|
|
pub static ARENA: ::zap::private::arena::GeneratedCodeArena = ::zap::private::arena::GeneratedCodeArena::new(&ENCODED_NODE);
|
|
pub static RAW_SCHEMA: ::zap::introspect::RawStructSchema = ::zap::introspect::RawStructSchema::new(
|
|
&ARENA,
|
|
NONUNION_MEMBERS,
|
|
MEMBERS_BY_DISCRIMINANT,
|
|
MEMBERS_BY_NAME
|
|
);
|
|
pub static NONUNION_MEMBERS : &[u16] = &[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17];
|
|
pub static MEMBERS_BY_DISCRIMINANT : &[u16] = &[];
|
|
pub static MEMBERS_BY_NAME : &[u16] = &[2,16,4,10,11,12,15,17,14,13,8,6,0,1,3,9,5,7];
|
|
pub const TYPE_ID: u64 = 0x9999_b046_2413_e9dd;
|
|
}
|
|
}
|
|
|
|
#[repr(u16)]
|
|
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
|
|
pub enum Color {
|
|
Black = 0,
|
|
White = 1,
|
|
Red = 2,
|
|
Green = 3,
|
|
Blue = 4,
|
|
Cyan = 5,
|
|
Magenta = 6,
|
|
Yellow = 7,
|
|
Silver = 8,
|
|
}
|
|
|
|
impl ::zap::introspect::Introspect for Color {
|
|
fn introspect() -> ::zap::introspect::Type { ::zap::introspect::TypeVariant::Enum(::zap::introspect::RawEnumSchema { encoded_node: &color::ENCODED_NODE, annotation_types: color::get_annotation_types }).into() }
|
|
}
|
|
impl ::core::convert::From<Color> for ::zap::dynamic_value::Reader<'_> {
|
|
fn from(e: Color) -> Self { ::zap::dynamic_value::Enum::new(e.into(), ::zap::introspect::RawEnumSchema { encoded_node: &color::ENCODED_NODE, annotation_types: color::get_annotation_types }.into()).into() }
|
|
}
|
|
impl ::core::convert::TryFrom<u16> for Color {
|
|
type Error = ::zap::NotInSchema;
|
|
fn try_from(value: u16) -> ::core::result::Result<Self, <Color as ::core::convert::TryFrom<u16>>::Error> {
|
|
match value {
|
|
0 => ::core::result::Result::Ok(Self::Black),
|
|
1 => ::core::result::Result::Ok(Self::White),
|
|
2 => ::core::result::Result::Ok(Self::Red),
|
|
3 => ::core::result::Result::Ok(Self::Green),
|
|
4 => ::core::result::Result::Ok(Self::Blue),
|
|
5 => ::core::result::Result::Ok(Self::Cyan),
|
|
6 => ::core::result::Result::Ok(Self::Magenta),
|
|
7 => ::core::result::Result::Ok(Self::Yellow),
|
|
8 => ::core::result::Result::Ok(Self::Silver),
|
|
n => ::core::result::Result::Err(::zap::NotInSchema(n)),
|
|
}
|
|
}
|
|
}
|
|
impl From<Color> for u16 {
|
|
#[inline]
|
|
fn from(x: Color) -> u16 { x as u16 }
|
|
}
|
|
impl ::zap::traits::HasTypeId for Color {
|
|
const TYPE_ID: u64 = 0xc99b_ce43_eaa3_adbdu64;
|
|
}
|
|
mod color {
|
|
pub static ENCODED_NODE: [::zap::Word; 54] = [
|
|
::zap::word(0, 0, 0, 0, 6, 0, 6, 0),
|
|
::zap::word(189, 173, 163, 234, 67, 206, 155, 201),
|
|
::zap::word(15, 0, 0, 0, 2, 0, 0, 0),
|
|
::zap::word(201, 35, 103, 163, 198, 221, 117, 255),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(161, 6, 0, 0, 27, 7, 0, 0),
|
|
::zap::word(21, 0, 0, 0, 170, 0, 0, 0),
|
|
::zap::word(29, 0, 0, 0, 7, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(25, 0, 0, 0, 223, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(99, 97, 114, 115, 97, 108, 101, 115),
|
|
::zap::word(46, 99, 97, 112, 110, 112, 58, 67),
|
|
::zap::word(111, 108, 111, 114, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 1, 0, 1, 0),
|
|
::zap::word(36, 0, 0, 0, 1, 0, 2, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(101, 0, 0, 0, 50, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(1, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(93, 0, 0, 0, 50, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(2, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(85, 0, 0, 0, 34, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(3, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(77, 0, 0, 0, 50, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(4, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(69, 0, 0, 0, 42, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(5, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(61, 0, 0, 0, 42, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(6, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(53, 0, 0, 0, 66, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(7, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(45, 0, 0, 0, 58, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(8, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(37, 0, 0, 0, 58, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(98, 108, 97, 99, 107, 0, 0, 0),
|
|
::zap::word(119, 104, 105, 116, 101, 0, 0, 0),
|
|
::zap::word(114, 101, 100, 0, 0, 0, 0, 0),
|
|
::zap::word(103, 114, 101, 101, 110, 0, 0, 0),
|
|
::zap::word(98, 108, 117, 101, 0, 0, 0, 0),
|
|
::zap::word(99, 121, 97, 110, 0, 0, 0, 0),
|
|
::zap::word(109, 97, 103, 101, 110, 116, 97, 0),
|
|
::zap::word(121, 101, 108, 108, 111, 119, 0, 0),
|
|
::zap::word(115, 105, 108, 118, 101, 114, 0, 0),
|
|
];
|
|
pub fn get_annotation_types(child_index: Option<u16>, index: u32) -> ::zap::introspect::Type {
|
|
::zap::introspect::panic_invalid_annotation_indices(child_index, index)
|
|
}
|
|
}
|
|
|
|
pub mod wheel {
|
|
#[derive(Copy, Clone)]
|
|
pub struct Owned(());
|
|
impl ::zap::introspect::Introspect for Owned { fn introspect() -> ::zap::introspect::Type { ::zap::introspect::TypeVariant::Struct(::zap::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types, annotation_types: _private::get_annotation_types }).into() } }
|
|
impl ::zap::traits::Owned for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; }
|
|
impl ::zap::traits::OwnedStruct for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; }
|
|
impl ::zap::traits::Pipelined for Owned { type Pipeline = Pipeline; }
|
|
|
|
pub struct Reader<'a> { reader: ::zap::private::layout::StructReader<'a> }
|
|
impl <> ::core::marker::Copy for Reader<'_,> {}
|
|
impl <> ::core::clone::Clone for Reader<'_,> {
|
|
fn clone(&self) -> Self { *self }
|
|
}
|
|
|
|
impl <> ::zap::traits::HasTypeId for Reader<'_,> {
|
|
const TYPE_ID: u64 = _private::TYPE_ID;
|
|
}
|
|
impl <'a,> ::core::convert::From<::zap::private::layout::StructReader<'a>> for Reader<'a,> {
|
|
fn from(reader: ::zap::private::layout::StructReader<'a>) -> Self {
|
|
Self { reader, }
|
|
}
|
|
}
|
|
|
|
impl <'a,> ::core::convert::From<Reader<'a,>> for ::zap::dynamic_value::Reader<'a> {
|
|
fn from(reader: Reader<'a,>) -> Self {
|
|
Self::Struct(::zap::dynamic_struct::Reader::new(reader.reader, ::zap::schema::StructSchema::new(::zap::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>})))
|
|
}
|
|
}
|
|
|
|
impl <> ::core::fmt::Debug for Reader<'_,> {
|
|
fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::result::Result<(), ::core::fmt::Error> {
|
|
core::fmt::Debug::fmt(&::core::convert::Into::<::zap::dynamic_value::Reader<'_>>::into(*self), f)
|
|
}
|
|
}
|
|
|
|
impl <'a,> ::zap::traits::FromPointerReader<'a> for Reader<'a,> {
|
|
fn get_from_pointer(reader: &::zap::private::layout::PointerReader<'a>, default: ::core::option::Option<&'a [::zap::Word]>) -> ::zap::Result<Self> {
|
|
::core::result::Result::Ok(reader.get_struct(default)?.into())
|
|
}
|
|
}
|
|
|
|
impl <'a,> ::zap::traits::IntoInternalStructReader<'a> for Reader<'a,> {
|
|
fn into_internal_struct_reader(self) -> ::zap::private::layout::StructReader<'a> {
|
|
self.reader
|
|
}
|
|
}
|
|
|
|
impl <'a,> ::zap::traits::Imbue<'a> for Reader<'a,> {
|
|
fn imbue(&mut self, cap_table: &'a ::zap::private::layout::CapTable) {
|
|
self.reader.imbue(::zap::private::layout::CapTableReader::Plain(cap_table))
|
|
}
|
|
}
|
|
|
|
impl <> Reader<'_,> {
|
|
pub fn reborrow(&self) -> Reader<'_,> {
|
|
Self { .. *self }
|
|
}
|
|
|
|
pub fn total_size(&self) -> ::zap::Result<::zap::MessageSize> {
|
|
self.reader.total_size()
|
|
}
|
|
#[inline]
|
|
pub fn get_diameter(self) -> u16 {
|
|
self.reader.get_data_field::<u16>(0)
|
|
}
|
|
#[inline]
|
|
pub fn get_air_pressure(self) -> f32 {
|
|
self.reader.get_data_field::<f32>(1)
|
|
}
|
|
#[inline]
|
|
pub fn get_snow_tires(self) -> bool {
|
|
self.reader.get_bool_field(16)
|
|
}
|
|
}
|
|
|
|
pub struct Builder<'a> { builder: ::zap::private::layout::StructBuilder<'a> }
|
|
impl <> ::zap::traits::HasStructSize for Builder<'_,> {
|
|
const STRUCT_SIZE: ::zap::private::layout::StructSize = ::zap::private::layout::StructSize { data: 1, pointers: 0 };
|
|
}
|
|
impl <> ::zap::traits::HasTypeId for Builder<'_,> {
|
|
const TYPE_ID: u64 = _private::TYPE_ID;
|
|
}
|
|
impl <'a,> ::core::convert::From<::zap::private::layout::StructBuilder<'a>> for Builder<'a,> {
|
|
fn from(builder: ::zap::private::layout::StructBuilder<'a>) -> Self {
|
|
Self { builder, }
|
|
}
|
|
}
|
|
|
|
impl <'a,> ::core::convert::From<Builder<'a,>> for ::zap::dynamic_value::Builder<'a> {
|
|
fn from(builder: Builder<'a,>) -> Self {
|
|
Self::Struct(::zap::dynamic_struct::Builder::new(builder.builder, ::zap::schema::StructSchema::new(::zap::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>})))
|
|
}
|
|
}
|
|
|
|
impl <'a,> ::zap::traits::ImbueMut<'a> for Builder<'a,> {
|
|
fn imbue_mut(&mut self, cap_table: &'a mut ::zap::private::layout::CapTable) {
|
|
self.builder.imbue(::zap::private::layout::CapTableBuilder::Plain(cap_table))
|
|
}
|
|
}
|
|
|
|
impl <'a,> ::zap::traits::FromPointerBuilder<'a> for Builder<'a,> {
|
|
fn init_pointer(builder: ::zap::private::layout::PointerBuilder<'a>, _size: u32) -> Self {
|
|
builder.init_struct(<Self as ::zap::traits::HasStructSize>::STRUCT_SIZE).into()
|
|
}
|
|
fn get_from_pointer(builder: ::zap::private::layout::PointerBuilder<'a>, default: ::core::option::Option<&'a [::zap::Word]>) -> ::zap::Result<Self> {
|
|
::core::result::Result::Ok(builder.get_struct(<Self as ::zap::traits::HasStructSize>::STRUCT_SIZE, default)?.into())
|
|
}
|
|
}
|
|
|
|
impl <> ::zap::traits::SetterInput<Owned<>> for Reader<'_,> {
|
|
fn set_pointer_builder(mut pointer: ::zap::private::layout::PointerBuilder<'_>, value: Self, canonicalize: bool) -> ::zap::Result<()> { pointer.set_struct(&value.reader, canonicalize) }
|
|
}
|
|
|
|
impl <'a,> Builder<'a,> {
|
|
pub fn into_reader(self) -> Reader<'a,> {
|
|
self.builder.into_reader().into()
|
|
}
|
|
pub fn reborrow(&mut self) -> Builder<'_,> {
|
|
Builder { builder: self.builder.reborrow() }
|
|
}
|
|
pub fn reborrow_as_reader(&self) -> Reader<'_,> {
|
|
self.builder.as_reader().into()
|
|
}
|
|
|
|
pub fn total_size(&self) -> ::zap::Result<::zap::MessageSize> {
|
|
self.builder.as_reader().total_size()
|
|
}
|
|
#[inline]
|
|
pub fn get_diameter(self) -> u16 {
|
|
self.builder.get_data_field::<u16>(0)
|
|
}
|
|
#[inline]
|
|
pub fn set_diameter(&mut self, value: u16) {
|
|
self.builder.set_data_field::<u16>(0, value);
|
|
}
|
|
#[inline]
|
|
pub fn get_air_pressure(self) -> f32 {
|
|
self.builder.get_data_field::<f32>(1)
|
|
}
|
|
#[inline]
|
|
pub fn set_air_pressure(&mut self, value: f32) {
|
|
self.builder.set_data_field::<f32>(1, value);
|
|
}
|
|
#[inline]
|
|
pub fn get_snow_tires(self) -> bool {
|
|
self.builder.get_bool_field(16)
|
|
}
|
|
#[inline]
|
|
pub fn set_snow_tires(&mut self, value: bool) {
|
|
self.builder.set_bool_field(16, value);
|
|
}
|
|
}
|
|
|
|
pub struct Pipeline { _typeless: ::zap::any_pointer::Pipeline }
|
|
impl ::zap::capability::FromTypelessPipeline for Pipeline {
|
|
fn new(typeless: ::zap::any_pointer::Pipeline) -> Self {
|
|
Self { _typeless: typeless, }
|
|
}
|
|
}
|
|
impl Pipeline {
|
|
}
|
|
mod _private {
|
|
pub static ENCODED_NODE: [::zap::Word; 66] = [
|
|
::zap::word(0, 0, 0, 0, 6, 0, 6, 0),
|
|
::zap::word(60, 117, 238, 170, 230, 59, 50, 215),
|
|
::zap::word(15, 0, 0, 0, 1, 0, 1, 0),
|
|
::zap::word(201, 35, 103, 163, 198, 221, 117, 255),
|
|
::zap::word(0, 0, 7, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(29, 7, 0, 0, 114, 7, 0, 0),
|
|
::zap::word(21, 0, 0, 0, 170, 0, 0, 0),
|
|
::zap::word(29, 0, 0, 0, 7, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(25, 0, 0, 0, 175, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(99, 97, 114, 115, 97, 108, 101, 115),
|
|
::zap::word(46, 99, 97, 112, 110, 112, 58, 87),
|
|
::zap::word(104, 101, 101, 108, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 1, 0, 1, 0),
|
|
::zap::word(12, 0, 0, 0, 3, 0, 4, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 1, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(69, 0, 0, 0, 74, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(68, 0, 0, 0, 3, 0, 1, 0),
|
|
::zap::word(80, 0, 0, 0, 2, 0, 1, 0),
|
|
::zap::word(1, 0, 0, 0, 1, 0, 0, 0),
|
|
::zap::word(0, 0, 1, 0, 1, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(77, 0, 0, 0, 98, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(76, 0, 0, 0, 3, 0, 1, 0),
|
|
::zap::word(88, 0, 0, 0, 2, 0, 1, 0),
|
|
::zap::word(2, 0, 0, 0, 16, 0, 0, 0),
|
|
::zap::word(0, 0, 1, 0, 2, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(85, 0, 0, 0, 82, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(84, 0, 0, 0, 3, 0, 1, 0),
|
|
::zap::word(96, 0, 0, 0, 2, 0, 1, 0),
|
|
::zap::word(100, 105, 97, 109, 101, 116, 101, 114),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(7, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(7, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(97, 105, 114, 80, 114, 101, 115, 115),
|
|
::zap::word(117, 114, 101, 0, 0, 0, 0, 0),
|
|
::zap::word(10, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(10, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(115, 110, 111, 119, 84, 105, 114, 101),
|
|
::zap::word(115, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(1, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(1, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
];
|
|
pub fn get_field_types(index: u16) -> ::zap::introspect::Type {
|
|
match index {
|
|
0 => <u16 as ::zap::introspect::Introspect>::introspect(),
|
|
1 => <f32 as ::zap::introspect::Introspect>::introspect(),
|
|
2 => <bool as ::zap::introspect::Introspect>::introspect(),
|
|
_ => ::zap::introspect::panic_invalid_field_index(index),
|
|
}
|
|
}
|
|
pub fn get_annotation_types(child_index: Option<u16>, index: u32) -> ::zap::introspect::Type {
|
|
::zap::introspect::panic_invalid_annotation_indices(child_index, index)
|
|
}
|
|
pub static ARENA: ::zap::private::arena::GeneratedCodeArena = ::zap::private::arena::GeneratedCodeArena::new(&ENCODED_NODE);
|
|
pub static RAW_SCHEMA: ::zap::introspect::RawStructSchema = ::zap::introspect::RawStructSchema::new(
|
|
&ARENA,
|
|
NONUNION_MEMBERS,
|
|
MEMBERS_BY_DISCRIMINANT,
|
|
MEMBERS_BY_NAME
|
|
);
|
|
pub static NONUNION_MEMBERS : &[u16] = &[0,1,2];
|
|
pub static MEMBERS_BY_DISCRIMINANT : &[u16] = &[];
|
|
pub static MEMBERS_BY_NAME : &[u16] = &[1,0,2];
|
|
pub const TYPE_ID: u64 = 0xd732_3be6_aaee_753c;
|
|
}
|
|
}
|
|
|
|
pub mod engine {
|
|
#[derive(Copy, Clone)]
|
|
pub struct Owned(());
|
|
impl ::zap::introspect::Introspect for Owned { fn introspect() -> ::zap::introspect::Type { ::zap::introspect::TypeVariant::Struct(::zap::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types, annotation_types: _private::get_annotation_types }).into() } }
|
|
impl ::zap::traits::Owned for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; }
|
|
impl ::zap::traits::OwnedStruct for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; }
|
|
impl ::zap::traits::Pipelined for Owned { type Pipeline = Pipeline; }
|
|
|
|
pub struct Reader<'a> { reader: ::zap::private::layout::StructReader<'a> }
|
|
impl <> ::core::marker::Copy for Reader<'_,> {}
|
|
impl <> ::core::clone::Clone for Reader<'_,> {
|
|
fn clone(&self) -> Self { *self }
|
|
}
|
|
|
|
impl <> ::zap::traits::HasTypeId for Reader<'_,> {
|
|
const TYPE_ID: u64 = _private::TYPE_ID;
|
|
}
|
|
impl <'a,> ::core::convert::From<::zap::private::layout::StructReader<'a>> for Reader<'a,> {
|
|
fn from(reader: ::zap::private::layout::StructReader<'a>) -> Self {
|
|
Self { reader, }
|
|
}
|
|
}
|
|
|
|
impl <'a,> ::core::convert::From<Reader<'a,>> for ::zap::dynamic_value::Reader<'a> {
|
|
fn from(reader: Reader<'a,>) -> Self {
|
|
Self::Struct(::zap::dynamic_struct::Reader::new(reader.reader, ::zap::schema::StructSchema::new(::zap::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>})))
|
|
}
|
|
}
|
|
|
|
impl <> ::core::fmt::Debug for Reader<'_,> {
|
|
fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::result::Result<(), ::core::fmt::Error> {
|
|
core::fmt::Debug::fmt(&::core::convert::Into::<::zap::dynamic_value::Reader<'_>>::into(*self), f)
|
|
}
|
|
}
|
|
|
|
impl <'a,> ::zap::traits::FromPointerReader<'a> for Reader<'a,> {
|
|
fn get_from_pointer(reader: &::zap::private::layout::PointerReader<'a>, default: ::core::option::Option<&'a [::zap::Word]>) -> ::zap::Result<Self> {
|
|
::core::result::Result::Ok(reader.get_struct(default)?.into())
|
|
}
|
|
}
|
|
|
|
impl <'a,> ::zap::traits::IntoInternalStructReader<'a> for Reader<'a,> {
|
|
fn into_internal_struct_reader(self) -> ::zap::private::layout::StructReader<'a> {
|
|
self.reader
|
|
}
|
|
}
|
|
|
|
impl <'a,> ::zap::traits::Imbue<'a> for Reader<'a,> {
|
|
fn imbue(&mut self, cap_table: &'a ::zap::private::layout::CapTable) {
|
|
self.reader.imbue(::zap::private::layout::CapTableReader::Plain(cap_table))
|
|
}
|
|
}
|
|
|
|
impl <> Reader<'_,> {
|
|
pub fn reborrow(&self) -> Reader<'_,> {
|
|
Self { .. *self }
|
|
}
|
|
|
|
pub fn total_size(&self) -> ::zap::Result<::zap::MessageSize> {
|
|
self.reader.total_size()
|
|
}
|
|
#[inline]
|
|
pub fn get_horsepower(self) -> u16 {
|
|
self.reader.get_data_field::<u16>(0)
|
|
}
|
|
#[inline]
|
|
pub fn get_cylinders(self) -> u8 {
|
|
self.reader.get_data_field::<u8>(2)
|
|
}
|
|
#[inline]
|
|
pub fn get_cc(self) -> u32 {
|
|
self.reader.get_data_field::<u32>(1)
|
|
}
|
|
#[inline]
|
|
pub fn get_uses_gas(self) -> bool {
|
|
self.reader.get_bool_field(24)
|
|
}
|
|
#[inline]
|
|
pub fn get_uses_electric(self) -> bool {
|
|
self.reader.get_bool_field(25)
|
|
}
|
|
}
|
|
|
|
pub struct Builder<'a> { builder: ::zap::private::layout::StructBuilder<'a> }
|
|
impl <> ::zap::traits::HasStructSize for Builder<'_,> {
|
|
const STRUCT_SIZE: ::zap::private::layout::StructSize = ::zap::private::layout::StructSize { data: 1, pointers: 0 };
|
|
}
|
|
impl <> ::zap::traits::HasTypeId for Builder<'_,> {
|
|
const TYPE_ID: u64 = _private::TYPE_ID;
|
|
}
|
|
impl <'a,> ::core::convert::From<::zap::private::layout::StructBuilder<'a>> for Builder<'a,> {
|
|
fn from(builder: ::zap::private::layout::StructBuilder<'a>) -> Self {
|
|
Self { builder, }
|
|
}
|
|
}
|
|
|
|
impl <'a,> ::core::convert::From<Builder<'a,>> for ::zap::dynamic_value::Builder<'a> {
|
|
fn from(builder: Builder<'a,>) -> Self {
|
|
Self::Struct(::zap::dynamic_struct::Builder::new(builder.builder, ::zap::schema::StructSchema::new(::zap::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>})))
|
|
}
|
|
}
|
|
|
|
impl <'a,> ::zap::traits::ImbueMut<'a> for Builder<'a,> {
|
|
fn imbue_mut(&mut self, cap_table: &'a mut ::zap::private::layout::CapTable) {
|
|
self.builder.imbue(::zap::private::layout::CapTableBuilder::Plain(cap_table))
|
|
}
|
|
}
|
|
|
|
impl <'a,> ::zap::traits::FromPointerBuilder<'a> for Builder<'a,> {
|
|
fn init_pointer(builder: ::zap::private::layout::PointerBuilder<'a>, _size: u32) -> Self {
|
|
builder.init_struct(<Self as ::zap::traits::HasStructSize>::STRUCT_SIZE).into()
|
|
}
|
|
fn get_from_pointer(builder: ::zap::private::layout::PointerBuilder<'a>, default: ::core::option::Option<&'a [::zap::Word]>) -> ::zap::Result<Self> {
|
|
::core::result::Result::Ok(builder.get_struct(<Self as ::zap::traits::HasStructSize>::STRUCT_SIZE, default)?.into())
|
|
}
|
|
}
|
|
|
|
impl <> ::zap::traits::SetterInput<Owned<>> for Reader<'_,> {
|
|
fn set_pointer_builder(mut pointer: ::zap::private::layout::PointerBuilder<'_>, value: Self, canonicalize: bool) -> ::zap::Result<()> { pointer.set_struct(&value.reader, canonicalize) }
|
|
}
|
|
|
|
impl <'a,> Builder<'a,> {
|
|
pub fn into_reader(self) -> Reader<'a,> {
|
|
self.builder.into_reader().into()
|
|
}
|
|
pub fn reborrow(&mut self) -> Builder<'_,> {
|
|
Builder { builder: self.builder.reborrow() }
|
|
}
|
|
pub fn reborrow_as_reader(&self) -> Reader<'_,> {
|
|
self.builder.as_reader().into()
|
|
}
|
|
|
|
pub fn total_size(&self) -> ::zap::Result<::zap::MessageSize> {
|
|
self.builder.as_reader().total_size()
|
|
}
|
|
#[inline]
|
|
pub fn get_horsepower(self) -> u16 {
|
|
self.builder.get_data_field::<u16>(0)
|
|
}
|
|
#[inline]
|
|
pub fn set_horsepower(&mut self, value: u16) {
|
|
self.builder.set_data_field::<u16>(0, value);
|
|
}
|
|
#[inline]
|
|
pub fn get_cylinders(self) -> u8 {
|
|
self.builder.get_data_field::<u8>(2)
|
|
}
|
|
#[inline]
|
|
pub fn set_cylinders(&mut self, value: u8) {
|
|
self.builder.set_data_field::<u8>(2, value);
|
|
}
|
|
#[inline]
|
|
pub fn get_cc(self) -> u32 {
|
|
self.builder.get_data_field::<u32>(1)
|
|
}
|
|
#[inline]
|
|
pub fn set_cc(&mut self, value: u32) {
|
|
self.builder.set_data_field::<u32>(1, value);
|
|
}
|
|
#[inline]
|
|
pub fn get_uses_gas(self) -> bool {
|
|
self.builder.get_bool_field(24)
|
|
}
|
|
#[inline]
|
|
pub fn set_uses_gas(&mut self, value: bool) {
|
|
self.builder.set_bool_field(24, value);
|
|
}
|
|
#[inline]
|
|
pub fn get_uses_electric(self) -> bool {
|
|
self.builder.get_bool_field(25)
|
|
}
|
|
#[inline]
|
|
pub fn set_uses_electric(&mut self, value: bool) {
|
|
self.builder.set_bool_field(25, value);
|
|
}
|
|
}
|
|
|
|
pub struct Pipeline { _typeless: ::zap::any_pointer::Pipeline }
|
|
impl ::zap::capability::FromTypelessPipeline for Pipeline {
|
|
fn new(typeless: ::zap::any_pointer::Pipeline) -> Self {
|
|
Self { _typeless: typeless, }
|
|
}
|
|
}
|
|
impl Pipeline {
|
|
}
|
|
mod _private {
|
|
pub static ENCODED_NODE: [::zap::Word; 96] = [
|
|
::zap::word(0, 0, 0, 0, 6, 0, 6, 0),
|
|
::zap::word(37, 245, 174, 222, 118, 84, 79, 128),
|
|
::zap::word(15, 0, 0, 0, 1, 0, 1, 0),
|
|
::zap::word(201, 35, 103, 163, 198, 221, 117, 255),
|
|
::zap::word(0, 0, 7, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(116, 7, 0, 0, 238, 7, 0, 0),
|
|
::zap::word(21, 0, 0, 0, 178, 0, 0, 0),
|
|
::zap::word(29, 0, 0, 0, 7, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(25, 0, 0, 0, 31, 1, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(99, 97, 114, 115, 97, 108, 101, 115),
|
|
::zap::word(46, 99, 97, 112, 110, 112, 58, 69),
|
|
::zap::word(110, 103, 105, 110, 101, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 1, 0, 1, 0),
|
|
::zap::word(20, 0, 0, 0, 3, 0, 4, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 1, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(125, 0, 0, 0, 90, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(124, 0, 0, 0, 3, 0, 1, 0),
|
|
::zap::word(136, 0, 0, 0, 2, 0, 1, 0),
|
|
::zap::word(1, 0, 0, 0, 2, 0, 0, 0),
|
|
::zap::word(0, 0, 1, 0, 1, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(133, 0, 0, 0, 82, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(132, 0, 0, 0, 3, 0, 1, 0),
|
|
::zap::word(144, 0, 0, 0, 2, 0, 1, 0),
|
|
::zap::word(2, 0, 0, 0, 1, 0, 0, 0),
|
|
::zap::word(0, 0, 1, 0, 2, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(141, 0, 0, 0, 26, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(136, 0, 0, 0, 3, 0, 1, 0),
|
|
::zap::word(148, 0, 0, 0, 2, 0, 1, 0),
|
|
::zap::word(3, 0, 0, 0, 24, 0, 0, 0),
|
|
::zap::word(0, 0, 1, 0, 3, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(145, 0, 0, 0, 66, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(140, 0, 0, 0, 3, 0, 1, 0),
|
|
::zap::word(152, 0, 0, 0, 2, 0, 1, 0),
|
|
::zap::word(4, 0, 0, 0, 25, 0, 0, 0),
|
|
::zap::word(0, 0, 1, 0, 4, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(149, 0, 0, 0, 106, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(148, 0, 0, 0, 3, 0, 1, 0),
|
|
::zap::word(160, 0, 0, 0, 2, 0, 1, 0),
|
|
::zap::word(104, 111, 114, 115, 101, 112, 111, 119),
|
|
::zap::word(101, 114, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(7, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(7, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(99, 121, 108, 105, 110, 100, 101, 114),
|
|
::zap::word(115, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(6, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(6, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(99, 99, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(8, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(8, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(117, 115, 101, 115, 71, 97, 115, 0),
|
|
::zap::word(1, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(1, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(117, 115, 101, 115, 69, 108, 101, 99),
|
|
::zap::word(116, 114, 105, 99, 0, 0, 0, 0),
|
|
::zap::word(1, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(1, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
::zap::word(0, 0, 0, 0, 0, 0, 0, 0),
|
|
];
|
|
pub fn get_field_types(index: u16) -> ::zap::introspect::Type {
|
|
match index {
|
|
0 => <u16 as ::zap::introspect::Introspect>::introspect(),
|
|
1 => <u8 as ::zap::introspect::Introspect>::introspect(),
|
|
2 => <u32 as ::zap::introspect::Introspect>::introspect(),
|
|
3 => <bool as ::zap::introspect::Introspect>::introspect(),
|
|
4 => <bool as ::zap::introspect::Introspect>::introspect(),
|
|
_ => ::zap::introspect::panic_invalid_field_index(index),
|
|
}
|
|
}
|
|
pub fn get_annotation_types(child_index: Option<u16>, index: u32) -> ::zap::introspect::Type {
|
|
::zap::introspect::panic_invalid_annotation_indices(child_index, index)
|
|
}
|
|
pub static ARENA: ::zap::private::arena::GeneratedCodeArena = ::zap::private::arena::GeneratedCodeArena::new(&ENCODED_NODE);
|
|
pub static RAW_SCHEMA: ::zap::introspect::RawStructSchema = ::zap::introspect::RawStructSchema::new(
|
|
&ARENA,
|
|
NONUNION_MEMBERS,
|
|
MEMBERS_BY_DISCRIMINANT,
|
|
MEMBERS_BY_NAME
|
|
);
|
|
pub static NONUNION_MEMBERS : &[u16] = &[0,1,2,3,4];
|
|
pub static MEMBERS_BY_DISCRIMINANT : &[u16] = &[];
|
|
pub static MEMBERS_BY_NAME : &[u16] = &[2,1,0,4,3];
|
|
pub const TYPE_ID: u64 = 0x804f_5476_deae_f525;
|
|
}
|
|
}
|