[−][src]Struct tensorflow_proto::tensorflow::test::TestAllTypes
Fields
optional_int32: i32
Singular
use large tag to test output order.
optional_int64: i64
optional_uint32: u32
optional_uint64: u64
use large tag to test output order.
optional_sint32: i32
optional_sint64: i64
optional_fixed32: u32
optional_fixed64: u64
optional_sfixed32: i32
optional_sfixed64: i64
optional_float: f32
optional_double: f64
optional_bool: bool
optional_string: String
optional_bytes: Vec<u8>
optional_nested_message: Option<NestedMessage>
optional_foreign_message: Option<ForeignMessage>
optional_nested_enum: i32
optional_foreign_enum: i32
optional_cord: String
repeated_int32: Vec<i32>
Repeated
repeated_int64: Vec<i64>
repeated_uint32: Vec<u32>
repeated_uint64: Vec<u64>
repeated_sint32: Vec<i32>
repeated_sint64: Vec<i64>
repeated_fixed32: Vec<u32>
repeated_fixed64: Vec<u64>
repeated_sfixed32: Vec<i32>
repeated_sfixed64: Vec<i64>
repeated_float: Vec<f32>
repeated_double: Vec<f64>
repeated_bool: Vec<bool>
repeated_string: Vec<String>
repeated_bytes: Vec<Vec<u8>>
repeated_nested_message: Vec<NestedMessage>
repeated_nested_enum: Vec<i32>
repeated_cord: Vec<String>
map_string_to_message: HashMap<String, NestedMessage>
map_int32_to_message: HashMap<i32, NestedMessage>
map_int64_to_message: HashMap<i64, NestedMessage>
map_bool_to_message: HashMap<bool, NestedMessage>
map_string_to_int64: HashMap<String, i64>
map_int64_to_string: HashMap<i64, String>
another_map_string_to_message: HashMap<String, NestedMessage>
packed_repeated_int64: Vec<i64>
oneof_field: Option<OneofField>
Implementations
impl TestAllTypes
[src]
pub fn optional_nested_enum(&self) -> NestedEnum
[src]
Returns the enum value of optional_nested_enum
, or the default if the field is set to an invalid enum value.
pub fn set_optional_nested_enum(&mut self, value: NestedEnum)
[src]
Sets optional_nested_enum
to the provided enum value.
pub fn optional_foreign_enum(&self) -> ForeignEnum
[src]
Returns the enum value of optional_foreign_enum
, or the default if the field is set to an invalid enum value.
pub fn set_optional_foreign_enum(&mut self, value: ForeignEnum)
[src]
Sets optional_foreign_enum
to the provided enum value.
pub fn repeated_nested_enum(
&self
) -> FilterMap<Cloned<Iter<'_, i32>>, fn(_: i32) -> Option<NestedEnum>>
[src]
&self
) -> FilterMap<Cloned<Iter<'_, i32>>, fn(_: i32) -> Option<NestedEnum>>
Returns an iterator which yields the valid enum values contained in repeated_nested_enum
.
pub fn push_repeated_nested_enum(&mut self, value: NestedEnum)
[src]
Appends the provided enum value to repeated_nested_enum
.
Trait Implementations
impl Clone for TestAllTypes
[src]
pub fn clone(&self) -> TestAllTypes
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for TestAllTypes
[src]
impl Default for TestAllTypes
[src]
impl Message for TestAllTypes
[src]
pub fn encode_raw<B>(&self, buf: &mut B) where
B: BufMut,
[src]
B: BufMut,
pub fn merge_field<B>(
&mut self,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext
) -> Result<(), DecodeError> where
B: Buf,
[src]
&mut self,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext
) -> Result<(), DecodeError> where
B: Buf,
pub fn encoded_len(&self) -> usize
[src]
pub fn clear(&mut self)
[src]
pub fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError> where
B: BufMut,
[src]
B: BufMut,
pub fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError> where
B: BufMut,
[src]
B: BufMut,
pub fn decode<B>(buf: B) -> Result<Self, DecodeError> where
Self: Default,
B: Buf,
[src]
Self: Default,
B: Buf,
pub fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
Self: Default,
B: Buf,
[src]
Self: Default,
B: Buf,
pub fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError> where
B: Buf,
[src]
B: Buf,
pub fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError> where
B: Buf,
[src]
B: Buf,
impl PartialEq<TestAllTypes> for TestAllTypes
[src]
pub fn eq(&self, other: &TestAllTypes) -> bool
[src]
pub fn ne(&self, other: &TestAllTypes) -> bool
[src]
impl StructuralPartialEq for TestAllTypes
[src]
Auto Trait Implementations
impl RefUnwindSafe for TestAllTypes
[src]
impl Send for TestAllTypes
[src]
impl Sync for TestAllTypes
[src]
impl Unpin for TestAllTypes
[src]
impl UnwindSafe for TestAllTypes
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,