extern crate flatbuffers;
use self::flatbuffers::EndianScalar;
-#[deprecated(since = "1.13", note = "Use associated constants instead. This will no longer be generated in 2021.")]
+#[deprecated(since = "2.0.0", note = "Use associated constants instead. This will no longer be generated in 2021.")]
pub const ENUM_MIN_COLOR: i8 = 0;
-#[deprecated(since = "1.13", note = "Use associated constants instead. This will no longer be generated in 2021.")]
+#[deprecated(since = "2.0.0", note = "Use associated constants instead. This will no longer be generated in 2021.")]
pub const ENUM_MAX_COLOR: i8 = 2;
-#[deprecated(since = "1.13", note = "Use associated constants instead. This will no longer be generated in 2021.")]
+#[deprecated(since = "2.0.0", note = "Use associated constants instead. This will no longer be generated in 2021.")]
#[allow(non_camel_case_types)]
pub const ENUM_VALUES_COLOR: [Color; 3] = [
Color::Red,
impl<'a> flatbuffers::Verifiable for Color {
#[inline]
- fn run_verifier<'o, 'b>(
- v: &mut flatbuffers::Verifier<'o, 'b>, pos: usize
+ fn run_verifier(
+ v: &mut flatbuffers::Verifier, pos: usize
) -> Result<(), flatbuffers::InvalidFlatbuffer> {
use self::flatbuffers::Verifiable;
i8::run_verifier(v, pos)
}
impl flatbuffers::SimpleToVerifyInSlice for Color {}
-#[deprecated(since = "1.13", note = "Use associated constants instead. This will no longer be generated in 2021.")]
+#[deprecated(since = "2.0.0", note = "Use associated constants instead. This will no longer be generated in 2021.")]
pub const ENUM_MIN_EQUIPMENT: u8 = 0;
-#[deprecated(since = "1.13", note = "Use associated constants instead. This will no longer be generated in 2021.")]
+#[deprecated(since = "2.0.0", note = "Use associated constants instead. This will no longer be generated in 2021.")]
pub const ENUM_MAX_EQUIPMENT: u8 = 1;
-#[deprecated(since = "1.13", note = "Use associated constants instead. This will no longer be generated in 2021.")]
+#[deprecated(since = "2.0.0", note = "Use associated constants instead. This will no longer be generated in 2021.")]
#[allow(non_camel_case_types)]
pub const ENUM_VALUES_EQUIPMENT: [Equipment; 2] = [
Equipment::NONE,
impl<'a> flatbuffers::Verifiable for Equipment {
#[inline]
- fn run_verifier<'o, 'b>(
- v: &mut flatbuffers::Verifier<'o, 'b>, pos: usize
+ fn run_verifier(
+ v: &mut flatbuffers::Verifier, pos: usize
) -> Result<(), flatbuffers::InvalidFlatbuffer> {
use self::flatbuffers::Verifiable;
u8::run_verifier(v, pos)
impl<'a> flatbuffers::Verifiable for Vec3 {
#[inline]
- fn run_verifier<'o, 'b>(
- v: &mut flatbuffers::Verifier<'o, 'b>, pos: usize
+ fn run_verifier(
+ v: &mut flatbuffers::Verifier, pos: usize
) -> Result<(), flatbuffers::InvalidFlatbuffer> {
use self::flatbuffers::Verifiable;
v.in_buffer::<Self>(pos)
}
}
impl Vec3 {
+ #[allow(clippy::too_many_arguments)]
pub fn new(_x: f32, _y: f32, _z: f32) -> Self {
Vec3 {
x_: _x.to_little_endian(),
impl flatbuffers::Verifiable for Monster<'_> {
#[inline]
- fn run_verifier<'o, 'b>(
- v: &mut flatbuffers::Verifier<'o, 'b>, pos: usize
+ fn run_verifier(
+ v: &mut flatbuffers::Verifier, pos: usize
) -> Result<(), flatbuffers::InvalidFlatbuffer> {
use self::flatbuffers::Verifiable;
v.visit_table(pos)?
impl flatbuffers::Verifiable for Weapon<'_> {
#[inline]
- fn run_verifier<'o, 'b>(
- v: &mut flatbuffers::Verifier<'o, 'b>, pos: usize
+ fn run_verifier(
+ v: &mut flatbuffers::Verifier, pos: usize
) -> Result<(), flatbuffers::InvalidFlatbuffer> {
use self::flatbuffers::Verifiable;
v.visit_table(pos)?
}
}
#[inline]
-#[deprecated(since="1.13", note="Deprecated in favor of `root_as...` methods.")]
+#[deprecated(since="2.0.0", note="Deprecated in favor of `root_as...` methods.")]
pub fn get_root_as_monster<'a>(buf: &'a [u8]) -> Monster<'a> {
unsafe { flatbuffers::root_unchecked::<Monster<'a>>(buf) }
}
#[inline]
-#[deprecated(since="1.13", note="Deprecated in favor of `root_as...` methods.")]
+#[deprecated(since="2.0.0", note="Deprecated in favor of `root_as...` methods.")]
pub fn get_size_prefixed_root_as_monster<'a>(buf: &'a [u8]) -> Monster<'a> {
unsafe { flatbuffers::size_prefixed_root_unchecked::<Monster<'a>>(buf) }
}
// Normal, c-modelled enums.
// Deprecated associated constants;
const std::string deprecation_warning =
- "#[deprecated(since = \"1.13\", note = \"Use associated constants"
+ "#[deprecated(since = \"2.0.0\", note = \"Use associated constants"
" instead. This will no longer be generated in 2021.\")]";
code_ += deprecation_warning;
code_ += "pub const ENUM_MIN_{{ENUM_NAME_CAPS}}: {{BASE_TYPE}}"
// Generate verifier - deferring to the base type.
code_ += "impl<'a> flatbuffers::Verifiable for {{ENUM_NAME}} {";
code_ += " #[inline]";
- code_ += " fn run_verifier<'o, 'b>(";
- code_ += " v: &mut flatbuffers::Verifier<'o, 'b>, pos: usize";
+ code_ += " fn run_verifier(";
+ code_ += " v: &mut flatbuffers::Verifier, pos: usize";
code_ += " ) -> Result<(), flatbuffers::InvalidFlatbuffer> {";
code_ += " use self::flatbuffers::Verifiable;";
code_ += " {{BASE_TYPE}}::run_verifier(v, pos)";
// Generate Verifier;
code_ += "impl flatbuffers::Verifiable for {{STRUCT_NAME}}<'_> {";
code_ += " #[inline]";
- code_ += " fn run_verifier<'o, 'b>(";
- code_ += " v: &mut flatbuffers::Verifier<'o, 'b>, pos: usize";
+ code_ += " fn run_verifier(";
+ code_ += " v: &mut flatbuffers::Verifier, pos: usize";
code_ += " ) -> Result<(), flatbuffers::InvalidFlatbuffer> {";
code_ += " use self::flatbuffers::Verifiable;";
code_ += " v.visit_table(pos)?\\";
// The root datatype accessors:
code_ += "#[inline]";
- code_ += "#[deprecated(since=\"1.13\", "
+ code_ += "#[deprecated(since=\"2.0.0\", "
"note=\"Deprecated in favor of `root_as...` methods.\")]";
code_ +=
"pub fn get_root_as_{{STRUCT_NAME_SNAKECASE}}<'a>(buf: &'a [u8])"
code_ += "";
code_ += "#[inline]";
- code_ += "#[deprecated(since=\"1.13\", "
+ code_ += "#[deprecated(since=\"2.0.0\", "
"note=\"Deprecated in favor of `root_as...` methods.\")]";
code_ +=
"pub fn get_size_prefixed_root_as_{{STRUCT_NAME_SNAKECASE}}"
// all that need to be checked.
code_ += "impl<'a> flatbuffers::Verifiable for {{STRUCT_NAME}} {";
code_ += " #[inline]";
- code_ += " fn run_verifier<'o, 'b>(";
- code_ += " v: &mut flatbuffers::Verifier<'o, 'b>, pos: usize";
+ code_ += " fn run_verifier(";
+ code_ += " v: &mut flatbuffers::Verifier, pos: usize";
code_ += " ) -> Result<(), flatbuffers::InvalidFlatbuffer> {";
code_ += " use self::flatbuffers::Verifiable;";
code_ += " v.in_buffer::<Self>(pos)";
code_ += "impl {{STRUCT_NAME}} {";
// TODO(cneo): Stop generating args on one line. Make it simpler.
bool first_arg = true;
+ code_ += " #[allow(clippy::too_many_arguments)]";
code_ += " pub fn new(\\";
ForAllStructFields(struct_def, [&](const FieldDef &field) {
if (first_arg) first_arg = false; else code_ += ", \\";
impl flatbuffers::Verifiable for TableA<'_> {
#[inline]
- fn run_verifier<'o, 'b>(
- v: &mut flatbuffers::Verifier<'o, 'b>, pos: usize
+ fn run_verifier(
+ v: &mut flatbuffers::Verifier, pos: usize
) -> Result<(), flatbuffers::InvalidFlatbuffer> {
use self::flatbuffers::Verifiable;
v.visit_table(pos)?
extern crate flatbuffers;
use self::flatbuffers::EndianScalar;
-#[deprecated(since = "1.13", note = "Use associated constants instead. This will no longer be generated in 2021.")]
+#[deprecated(since = "2.0.0", note = "Use associated constants instead. This will no longer be generated in 2021.")]
pub const ENUM_MIN_FROM_INCLUDE: i64 = 0;
-#[deprecated(since = "1.13", note = "Use associated constants instead. This will no longer be generated in 2021.")]
+#[deprecated(since = "2.0.0", note = "Use associated constants instead. This will no longer be generated in 2021.")]
pub const ENUM_MAX_FROM_INCLUDE: i64 = 0;
-#[deprecated(since = "1.13", note = "Use associated constants instead. This will no longer be generated in 2021.")]
+#[deprecated(since = "2.0.0", note = "Use associated constants instead. This will no longer be generated in 2021.")]
#[allow(non_camel_case_types)]
pub const ENUM_VALUES_FROM_INCLUDE: [FromInclude; 1] = [
FromInclude::IncludeVal,
impl<'a> flatbuffers::Verifiable for FromInclude {
#[inline]
- fn run_verifier<'o, 'b>(
- v: &mut flatbuffers::Verifier<'o, 'b>, pos: usize
+ fn run_verifier(
+ v: &mut flatbuffers::Verifier, pos: usize
) -> Result<(), flatbuffers::InvalidFlatbuffer> {
use self::flatbuffers::Verifiable;
i64::run_verifier(v, pos)
impl<'a> flatbuffers::Verifiable for Unused {
#[inline]
- fn run_verifier<'o, 'b>(
- v: &mut flatbuffers::Verifier<'o, 'b>, pos: usize
+ fn run_verifier(
+ v: &mut flatbuffers::Verifier, pos: usize
) -> Result<(), flatbuffers::InvalidFlatbuffer> {
use self::flatbuffers::Verifiable;
v.in_buffer::<Self>(pos)
}
}
impl Unused {
+ #[allow(clippy::too_many_arguments)]
pub fn new(_a: i32) -> Self {
Unused {
a_: _a.to_little_endian(),
impl flatbuffers::Verifiable for TableB<'_> {
#[inline]
- fn run_verifier<'o, 'b>(
- v: &mut flatbuffers::Verifier<'o, 'b>, pos: usize
+ fn run_verifier(
+ v: &mut flatbuffers::Verifier, pos: usize
) -> Result<(), flatbuffers::InvalidFlatbuffer> {
use self::flatbuffers::Verifiable;
v.visit_table(pos)?
impl flatbuffers::Verifiable for InParentNamespace<'_> {
#[inline]
- fn run_verifier<'o, 'b>(
- v: &mut flatbuffers::Verifier<'o, 'b>, pos: usize
+ fn run_verifier(
+ v: &mut flatbuffers::Verifier, pos: usize
) -> Result<(), flatbuffers::InvalidFlatbuffer> {
use self::flatbuffers::Verifiable;
v.visit_table(pos)?
impl flatbuffers::Verifiable for Monster<'_> {
#[inline]
- fn run_verifier<'o, 'b>(
- v: &mut flatbuffers::Verifier<'o, 'b>, pos: usize
+ fn run_verifier(
+ v: &mut flatbuffers::Verifier, pos: usize
) -> Result<(), flatbuffers::InvalidFlatbuffer> {
use self::flatbuffers::Verifiable;
v.visit_table(pos)?
impl<'a> flatbuffers::Verifiable for Color {
#[inline]
- fn run_verifier<'o, 'b>(
- v: &mut flatbuffers::Verifier<'o, 'b>, pos: usize
+ fn run_verifier(
+ v: &mut flatbuffers::Verifier, pos: usize
) -> Result<(), flatbuffers::InvalidFlatbuffer> {
use self::flatbuffers::Verifiable;
u8::run_verifier(v, pos)
}
impl flatbuffers::SimpleToVerifyInSlice for Color {}
-#[deprecated(since = "1.13", note = "Use associated constants instead. This will no longer be generated in 2021.")]
+#[deprecated(since = "2.0.0", note = "Use associated constants instead. This will no longer be generated in 2021.")]
pub const ENUM_MIN_RACE: i8 = -1;
-#[deprecated(since = "1.13", note = "Use associated constants instead. This will no longer be generated in 2021.")]
+#[deprecated(since = "2.0.0", note = "Use associated constants instead. This will no longer be generated in 2021.")]
pub const ENUM_MAX_RACE: i8 = 2;
-#[deprecated(since = "1.13", note = "Use associated constants instead. This will no longer be generated in 2021.")]
+#[deprecated(since = "2.0.0", note = "Use associated constants instead. This will no longer be generated in 2021.")]
#[allow(non_camel_case_types)]
pub const ENUM_VALUES_RACE: [Race; 4] = [
Race::None,
impl<'a> flatbuffers::Verifiable for Race {
#[inline]
- fn run_verifier<'o, 'b>(
- v: &mut flatbuffers::Verifier<'o, 'b>, pos: usize
+ fn run_verifier(
+ v: &mut flatbuffers::Verifier, pos: usize
) -> Result<(), flatbuffers::InvalidFlatbuffer> {
use self::flatbuffers::Verifiable;
i8::run_verifier(v, pos)
}
impl flatbuffers::SimpleToVerifyInSlice for Race {}
-#[deprecated(since = "1.13", note = "Use associated constants instead. This will no longer be generated in 2021.")]
+#[deprecated(since = "2.0.0", note = "Use associated constants instead. This will no longer be generated in 2021.")]
pub const ENUM_MIN_ANY: u8 = 0;
-#[deprecated(since = "1.13", note = "Use associated constants instead. This will no longer be generated in 2021.")]
+#[deprecated(since = "2.0.0", note = "Use associated constants instead. This will no longer be generated in 2021.")]
pub const ENUM_MAX_ANY: u8 = 3;
-#[deprecated(since = "1.13", note = "Use associated constants instead. This will no longer be generated in 2021.")]
+#[deprecated(since = "2.0.0", note = "Use associated constants instead. This will no longer be generated in 2021.")]
#[allow(non_camel_case_types)]
pub const ENUM_VALUES_ANY: [Any; 4] = [
Any::NONE,
impl<'a> flatbuffers::Verifiable for Any {
#[inline]
- fn run_verifier<'o, 'b>(
- v: &mut flatbuffers::Verifier<'o, 'b>, pos: usize
+ fn run_verifier(
+ v: &mut flatbuffers::Verifier, pos: usize
) -> Result<(), flatbuffers::InvalidFlatbuffer> {
use self::flatbuffers::Verifiable;
u8::run_verifier(v, pos)
}
impl flatbuffers::SimpleToVerifyInSlice for Any {}
-#[deprecated(since = "1.13", note = "Use associated constants instead. This will no longer be generated in 2021.")]
+#[deprecated(since = "2.0.0", note = "Use associated constants instead. This will no longer be generated in 2021.")]
pub const ENUM_MIN_ANY_UNIQUE_ALIASES: u8 = 0;
-#[deprecated(since = "1.13", note = "Use associated constants instead. This will no longer be generated in 2021.")]
+#[deprecated(since = "2.0.0", note = "Use associated constants instead. This will no longer be generated in 2021.")]
pub const ENUM_MAX_ANY_UNIQUE_ALIASES: u8 = 3;
-#[deprecated(since = "1.13", note = "Use associated constants instead. This will no longer be generated in 2021.")]
+#[deprecated(since = "2.0.0", note = "Use associated constants instead. This will no longer be generated in 2021.")]
#[allow(non_camel_case_types)]
pub const ENUM_VALUES_ANY_UNIQUE_ALIASES: [AnyUniqueAliases; 4] = [
AnyUniqueAliases::NONE,
impl<'a> flatbuffers::Verifiable for AnyUniqueAliases {
#[inline]
- fn run_verifier<'o, 'b>(
- v: &mut flatbuffers::Verifier<'o, 'b>, pos: usize
+ fn run_verifier(
+ v: &mut flatbuffers::Verifier, pos: usize
) -> Result<(), flatbuffers::InvalidFlatbuffer> {
use self::flatbuffers::Verifiable;
u8::run_verifier(v, pos)
}
impl flatbuffers::SimpleToVerifyInSlice for AnyUniqueAliases {}
-#[deprecated(since = "1.13", note = "Use associated constants instead. This will no longer be generated in 2021.")]
+#[deprecated(since = "2.0.0", note = "Use associated constants instead. This will no longer be generated in 2021.")]
pub const ENUM_MIN_ANY_AMBIGUOUS_ALIASES: u8 = 0;
-#[deprecated(since = "1.13", note = "Use associated constants instead. This will no longer be generated in 2021.")]
+#[deprecated(since = "2.0.0", note = "Use associated constants instead. This will no longer be generated in 2021.")]
pub const ENUM_MAX_ANY_AMBIGUOUS_ALIASES: u8 = 3;
-#[deprecated(since = "1.13", note = "Use associated constants instead. This will no longer be generated in 2021.")]
+#[deprecated(since = "2.0.0", note = "Use associated constants instead. This will no longer be generated in 2021.")]
#[allow(non_camel_case_types)]
pub const ENUM_VALUES_ANY_AMBIGUOUS_ALIASES: [AnyAmbiguousAliases; 4] = [
AnyAmbiguousAliases::NONE,
impl<'a> flatbuffers::Verifiable for AnyAmbiguousAliases {
#[inline]
- fn run_verifier<'o, 'b>(
- v: &mut flatbuffers::Verifier<'o, 'b>, pos: usize
+ fn run_verifier(
+ v: &mut flatbuffers::Verifier, pos: usize
) -> Result<(), flatbuffers::InvalidFlatbuffer> {
use self::flatbuffers::Verifiable;
u8::run_verifier(v, pos)
impl<'a> flatbuffers::Verifiable for Test {
#[inline]
- fn run_verifier<'o, 'b>(
- v: &mut flatbuffers::Verifier<'o, 'b>, pos: usize
+ fn run_verifier(
+ v: &mut flatbuffers::Verifier, pos: usize
) -> Result<(), flatbuffers::InvalidFlatbuffer> {
use self::flatbuffers::Verifiable;
v.in_buffer::<Self>(pos)
}
}
impl Test {
+ #[allow(clippy::too_many_arguments)]
pub fn new(_a: i16, _b: i8) -> Self {
Test {
a_: _a.to_little_endian(),
impl<'a> flatbuffers::Verifiable for Vec3 {
#[inline]
- fn run_verifier<'o, 'b>(
- v: &mut flatbuffers::Verifier<'o, 'b>, pos: usize
+ fn run_verifier(
+ v: &mut flatbuffers::Verifier, pos: usize
) -> Result<(), flatbuffers::InvalidFlatbuffer> {
use self::flatbuffers::Verifiable;
v.in_buffer::<Self>(pos)
}
}
impl Vec3 {
+ #[allow(clippy::too_many_arguments)]
pub fn new(_x: f32, _y: f32, _z: f32, _test1: f64, _test2: Color, _test3: &Test) -> Self {
Vec3 {
x_: _x.to_little_endian(),
impl<'a> flatbuffers::Verifiable for Ability {
#[inline]
- fn run_verifier<'o, 'b>(
- v: &mut flatbuffers::Verifier<'o, 'b>, pos: usize
+ fn run_verifier(
+ v: &mut flatbuffers::Verifier, pos: usize
) -> Result<(), flatbuffers::InvalidFlatbuffer> {
use self::flatbuffers::Verifiable;
v.in_buffer::<Self>(pos)
}
}
impl Ability {
+ #[allow(clippy::too_many_arguments)]
pub fn new(_id: u32, _distance: u32) -> Self {
Ability {
id_: _id.to_little_endian(),
impl flatbuffers::Verifiable for TestSimpleTableWithEnum<'_> {
#[inline]
- fn run_verifier<'o, 'b>(
- v: &mut flatbuffers::Verifier<'o, 'b>, pos: usize
+ fn run_verifier(
+ v: &mut flatbuffers::Verifier, pos: usize
) -> Result<(), flatbuffers::InvalidFlatbuffer> {
use self::flatbuffers::Verifiable;
v.visit_table(pos)?
impl flatbuffers::Verifiable for Stat<'_> {
#[inline]
- fn run_verifier<'o, 'b>(
- v: &mut flatbuffers::Verifier<'o, 'b>, pos: usize
+ fn run_verifier(
+ v: &mut flatbuffers::Verifier, pos: usize
) -> Result<(), flatbuffers::InvalidFlatbuffer> {
use self::flatbuffers::Verifiable;
v.visit_table(pos)?
impl flatbuffers::Verifiable for Referrable<'_> {
#[inline]
- fn run_verifier<'o, 'b>(
- v: &mut flatbuffers::Verifier<'o, 'b>, pos: usize
+ fn run_verifier(
+ v: &mut flatbuffers::Verifier, pos: usize
) -> Result<(), flatbuffers::InvalidFlatbuffer> {
use self::flatbuffers::Verifiable;
v.visit_table(pos)?
impl flatbuffers::Verifiable for Monster<'_> {
#[inline]
- fn run_verifier<'o, 'b>(
- v: &mut flatbuffers::Verifier<'o, 'b>, pos: usize
+ fn run_verifier(
+ v: &mut flatbuffers::Verifier, pos: usize
) -> Result<(), flatbuffers::InvalidFlatbuffer> {
use self::flatbuffers::Verifiable;
v.visit_table(pos)?
impl flatbuffers::Verifiable for TypeAliases<'_> {
#[inline]
- fn run_verifier<'o, 'b>(
- v: &mut flatbuffers::Verifier<'o, 'b>, pos: usize
+ fn run_verifier(
+ v: &mut flatbuffers::Verifier, pos: usize
) -> Result<(), flatbuffers::InvalidFlatbuffer> {
use self::flatbuffers::Verifiable;
v.visit_table(pos)?
}
}
#[inline]
-#[deprecated(since="1.13", note="Deprecated in favor of `root_as...` methods.")]
+#[deprecated(since="2.0.0", note="Deprecated in favor of `root_as...` methods.")]
pub fn get_root_as_monster<'a>(buf: &'a [u8]) -> Monster<'a> {
unsafe { flatbuffers::root_unchecked::<Monster<'a>>(buf) }
}
#[inline]
-#[deprecated(since="1.13", note="Deprecated in favor of `root_as...` methods.")]
+#[deprecated(since="2.0.0", note="Deprecated in favor of `root_as...` methods.")]
pub fn get_size_prefixed_root_as_monster<'a>(buf: &'a [u8]) -> Monster<'a> {
unsafe { flatbuffers::size_prefixed_root_unchecked::<Monster<'a>>(buf) }
}
extern crate flatbuffers;
use self::flatbuffers::EndianScalar;
-#[deprecated(since = "1.13", note = "Use associated constants instead. This will no longer be generated in 2021.")]
+#[deprecated(since = "2.0.0", note = "Use associated constants instead. This will no longer be generated in 2021.")]
pub const ENUM_MIN_ENUM_IN_NESTED_NS: i8 = 0;
-#[deprecated(since = "1.13", note = "Use associated constants instead. This will no longer be generated in 2021.")]
+#[deprecated(since = "2.0.0", note = "Use associated constants instead. This will no longer be generated in 2021.")]
pub const ENUM_MAX_ENUM_IN_NESTED_NS: i8 = 2;
-#[deprecated(since = "1.13", note = "Use associated constants instead. This will no longer be generated in 2021.")]
+#[deprecated(since = "2.0.0", note = "Use associated constants instead. This will no longer be generated in 2021.")]
#[allow(non_camel_case_types)]
pub const ENUM_VALUES_ENUM_IN_NESTED_NS: [EnumInNestedNS; 3] = [
EnumInNestedNS::A,
impl<'a> flatbuffers::Verifiable for EnumInNestedNS {
#[inline]
- fn run_verifier<'o, 'b>(
- v: &mut flatbuffers::Verifier<'o, 'b>, pos: usize
+ fn run_verifier(
+ v: &mut flatbuffers::Verifier, pos: usize
) -> Result<(), flatbuffers::InvalidFlatbuffer> {
use self::flatbuffers::Verifiable;
i8::run_verifier(v, pos)
impl<'a> flatbuffers::Verifiable for StructInNestedNS {
#[inline]
- fn run_verifier<'o, 'b>(
- v: &mut flatbuffers::Verifier<'o, 'b>, pos: usize
+ fn run_verifier(
+ v: &mut flatbuffers::Verifier, pos: usize
) -> Result<(), flatbuffers::InvalidFlatbuffer> {
use self::flatbuffers::Verifiable;
v.in_buffer::<Self>(pos)
}
}
impl StructInNestedNS {
+ #[allow(clippy::too_many_arguments)]
pub fn new(_a: i32, _b: i32) -> Self {
StructInNestedNS {
a_: _a.to_little_endian(),
impl flatbuffers::Verifiable for TableInNestedNS<'_> {
#[inline]
- fn run_verifier<'o, 'b>(
- v: &mut flatbuffers::Verifier<'o, 'b>, pos: usize
+ fn run_verifier(
+ v: &mut flatbuffers::Verifier, pos: usize
) -> Result<(), flatbuffers::InvalidFlatbuffer> {
use self::flatbuffers::Verifiable;
v.visit_table(pos)?
impl flatbuffers::Verifiable for TableInFirstNS<'_> {
#[inline]
- fn run_verifier<'o, 'b>(
- v: &mut flatbuffers::Verifier<'o, 'b>, pos: usize
+ fn run_verifier(
+ v: &mut flatbuffers::Verifier, pos: usize
) -> Result<(), flatbuffers::InvalidFlatbuffer> {
use self::flatbuffers::Verifiable;
v.visit_table(pos)?
impl flatbuffers::Verifiable for SecondTableInA<'_> {
#[inline]
- fn run_verifier<'o, 'b>(
- v: &mut flatbuffers::Verifier<'o, 'b>, pos: usize
+ fn run_verifier(
+ v: &mut flatbuffers::Verifier, pos: usize
) -> Result<(), flatbuffers::InvalidFlatbuffer> {
use self::flatbuffers::Verifiable;
v.visit_table(pos)?
impl flatbuffers::Verifiable for TableInC<'_> {
#[inline]
- fn run_verifier<'o, 'b>(
- v: &mut flatbuffers::Verifier<'o, 'b>, pos: usize
+ fn run_verifier(
+ v: &mut flatbuffers::Verifier, pos: usize
) -> Result<(), flatbuffers::InvalidFlatbuffer> {
use self::flatbuffers::Verifiable;
v.visit_table(pos)?
extern crate flatbuffers;
use self::flatbuffers::EndianScalar;
-#[deprecated(since = "1.13", note = "Use associated constants instead. This will no longer be generated in 2021.")]
+#[deprecated(since = "2.0.0", note = "Use associated constants instead. This will no longer be generated in 2021.")]
pub const ENUM_MIN_OPTIONAL_BYTE: i8 = 0;
-#[deprecated(since = "1.13", note = "Use associated constants instead. This will no longer be generated in 2021.")]
+#[deprecated(since = "2.0.0", note = "Use associated constants instead. This will no longer be generated in 2021.")]
pub const ENUM_MAX_OPTIONAL_BYTE: i8 = 2;
-#[deprecated(since = "1.13", note = "Use associated constants instead. This will no longer be generated in 2021.")]
+#[deprecated(since = "2.0.0", note = "Use associated constants instead. This will no longer be generated in 2021.")]
#[allow(non_camel_case_types)]
pub const ENUM_VALUES_OPTIONAL_BYTE: [OptionalByte; 3] = [
OptionalByte::None,
impl<'a> flatbuffers::Verifiable for OptionalByte {
#[inline]
- fn run_verifier<'o, 'b>(
- v: &mut flatbuffers::Verifier<'o, 'b>, pos: usize
+ fn run_verifier(
+ v: &mut flatbuffers::Verifier, pos: usize
) -> Result<(), flatbuffers::InvalidFlatbuffer> {
use self::flatbuffers::Verifiable;
i8::run_verifier(v, pos)
impl flatbuffers::Verifiable for ScalarStuff<'_> {
#[inline]
- fn run_verifier<'o, 'b>(
- v: &mut flatbuffers::Verifier<'o, 'b>, pos: usize
+ fn run_verifier(
+ v: &mut flatbuffers::Verifier, pos: usize
) -> Result<(), flatbuffers::InvalidFlatbuffer> {
use self::flatbuffers::Verifiable;
v.visit_table(pos)?
}
}
#[inline]
-#[deprecated(since="1.13", note="Deprecated in favor of `root_as...` methods.")]
+#[deprecated(since="2.0.0", note="Deprecated in favor of `root_as...` methods.")]
pub fn get_root_as_scalar_stuff<'a>(buf: &'a [u8]) -> ScalarStuff<'a> {
unsafe { flatbuffers::root_unchecked::<ScalarStuff<'a>>(buf) }
}
#[inline]
-#[deprecated(since="1.13", note="Deprecated in favor of `root_as...` methods.")]
+#[deprecated(since="2.0.0", note="Deprecated in favor of `root_as...` methods.")]
pub fn get_size_prefixed_root_as_scalar_stuff<'a>(buf: &'a [u8]) -> ScalarStuff<'a> {
unsafe { flatbuffers::size_prefixed_root_unchecked::<ScalarStuff<'a>>(buf) }
}