[−][src]Struct tensorflow_proto::tensorflow::contrib::proto::PackedTestValue
A PackedTestValue looks exactly the same as a TestValue in the text format, but the binary serializion is different. We test the packed representations by loading the same test cases using this definition instead of TestValue.
NOTE: This definition must be kept in sync with TestValue in every way except the packed=true declaration and the lack of extensions.
Fields
double_value: Vec<f64>
float_value: Vec<f32>
int64_value: Vec<i64>
uint64_value: Vec<u64>
int32_value: Vec<i32>
fixed64_value: Vec<u64>
fixed32_value: Vec<u32>
bool_value: Vec<bool>
string_value: Vec<String>
bytes_value: Vec<Vec<u8>>
uint32_value: Vec<u32>
sfixed32_value: Vec<i32>
sfixed64_value: Vec<i64>
sint32_value: Vec<i32>
sint64_value: Vec<i64>
message_value: Vec<PrimitiveValue>
double_value_with_default: Option<f64>
float_value_with_default: Option<f32>
int64_value_with_default: Option<i64>
uint64_value_with_default: Option<u64>
int32_value_with_default: Option<i32>
fixed64_value_with_default: Option<u64>
fixed32_value_with_default: Option<u32>
bool_value_with_default: Option<bool>
string_value_with_default: Option<String>
bytes_value_with_default: Option<Vec<u8>>
uint32_value_with_default: Option<u32>
sfixed32_value_with_default: Option<i32>
sfixed64_value_with_default: Option<i64>
sint32_value_with_default: Option<i32>
sint64_value_with_default: Option<i64>
Implementations
impl PackedTestValue
[src]
pub fn double_value_with_default(&self) -> f64
[src]
Returns the value of double_value_with_default
, or the default value if double_value_with_default
is unset.
pub fn float_value_with_default(&self) -> f32
[src]
Returns the value of float_value_with_default
, or the default value if float_value_with_default
is unset.
pub fn int64_value_with_default(&self) -> i64
[src]
Returns the value of int64_value_with_default
, or the default value if int64_value_with_default
is unset.
pub fn uint64_value_with_default(&self) -> u64
[src]
Returns the value of uint64_value_with_default
, or the default value if uint64_value_with_default
is unset.
pub fn int32_value_with_default(&self) -> i32
[src]
Returns the value of int32_value_with_default
, or the default value if int32_value_with_default
is unset.
pub fn fixed64_value_with_default(&self) -> u64
[src]
Returns the value of fixed64_value_with_default
, or the default value if fixed64_value_with_default
is unset.
pub fn fixed32_value_with_default(&self) -> u32
[src]
Returns the value of fixed32_value_with_default
, or the default value if fixed32_value_with_default
is unset.
pub fn bool_value_with_default(&self) -> bool
[src]
Returns the value of bool_value_with_default
, or the default value if bool_value_with_default
is unset.
pub fn string_value_with_default(&self) -> &str
[src]
Returns the value of string_value_with_default
, or the default value if string_value_with_default
is unset.
pub fn bytes_value_with_default(&self) -> &[u8]
[src]
Returns the value of bytes_value_with_default
, or the default value if bytes_value_with_default
is unset.
pub fn uint32_value_with_default(&self) -> u32
[src]
Returns the value of uint32_value_with_default
, or the default value if uint32_value_with_default
is unset.
pub fn sfixed32_value_with_default(&self) -> i32
[src]
Returns the value of sfixed32_value_with_default
, or the default value if sfixed32_value_with_default
is unset.
pub fn sfixed64_value_with_default(&self) -> i64
[src]
Returns the value of sfixed64_value_with_default
, or the default value if sfixed64_value_with_default
is unset.
pub fn sint32_value_with_default(&self) -> i32
[src]
Returns the value of sint32_value_with_default
, or the default value if sint32_value_with_default
is unset.
pub fn sint64_value_with_default(&self) -> i64
[src]
Returns the value of sint64_value_with_default
, or the default value if sint64_value_with_default
is unset.
Trait Implementations
impl Clone for PackedTestValue
[src]
pub fn clone(&self) -> PackedTestValue
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for PackedTestValue
[src]
impl Default for PackedTestValue
[src]
impl Message for PackedTestValue
[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<PackedTestValue> for PackedTestValue
[src]
pub fn eq(&self, other: &PackedTestValue) -> bool
[src]
pub fn ne(&self, other: &PackedTestValue) -> bool
[src]
impl StructuralPartialEq for PackedTestValue
[src]
Auto Trait Implementations
impl RefUnwindSafe for PackedTestValue
[src]
impl Send for PackedTestValue
[src]
impl Sync for PackedTestValue
[src]
impl Unpin for PackedTestValue
[src]
impl UnwindSafe for PackedTestValue
[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>,