[−][src]Struct tensorflow_proto::tensorflow::contrib::proto::PrimitiveValue
Fields
double_value: Option<f64>
float_value: Option<f32>
int64_value: Option<i64>
uint64_value: Option<u64>
int32_value: Option<i32>
fixed64_value: Option<u64>
fixed32_value: Option<u32>
bool_value: Option<bool>
string_value: Option<String>
bytes_value: Option<Vec<u8>>
uint32_value: Option<u32>
sfixed32_value: Option<i32>
sfixed64_value: Option<i64>
sint32_value: Option<i32>
sint64_value: Option<i64>
Implementations
impl PrimitiveValue
[src]
pub fn double_value(&self) -> f64
[src]
Returns the value of double_value
, or the default value if double_value
is unset.
pub fn float_value(&self) -> f32
[src]
Returns the value of float_value
, or the default value if float_value
is unset.
pub fn int64_value(&self) -> i64
[src]
Returns the value of int64_value
, or the default value if int64_value
is unset.
pub fn uint64_value(&self) -> u64
[src]
Returns the value of uint64_value
, or the default value if uint64_value
is unset.
pub fn int32_value(&self) -> i32
[src]
Returns the value of int32_value
, or the default value if int32_value
is unset.
pub fn fixed64_value(&self) -> u64
[src]
Returns the value of fixed64_value
, or the default value if fixed64_value
is unset.
pub fn fixed32_value(&self) -> u32
[src]
Returns the value of fixed32_value
, or the default value if fixed32_value
is unset.
pub fn bool_value(&self) -> bool
[src]
Returns the value of bool_value
, or the default value if bool_value
is unset.
pub fn string_value(&self) -> &str
[src]
Returns the value of string_value
, or the default value if string_value
is unset.
pub fn bytes_value(&self) -> &[u8]
[src]
Returns the value of bytes_value
, or the default value if bytes_value
is unset.
pub fn uint32_value(&self) -> u32
[src]
Returns the value of uint32_value
, or the default value if uint32_value
is unset.
pub fn sfixed32_value(&self) -> i32
[src]
Returns the value of sfixed32_value
, or the default value if sfixed32_value
is unset.
pub fn sfixed64_value(&self) -> i64
[src]
Returns the value of sfixed64_value
, or the default value if sfixed64_value
is unset.
pub fn sint32_value(&self) -> i32
[src]
Returns the value of sint32_value
, or the default value if sint32_value
is unset.
pub fn sint64_value(&self) -> i64
[src]
Returns the value of sint64_value
, or the default value if sint64_value
is unset.
Trait Implementations
impl Clone for PrimitiveValue
[src]
pub fn clone(&self) -> PrimitiveValue
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for PrimitiveValue
[src]
impl Default for PrimitiveValue
[src]
impl Message for PrimitiveValue
[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<PrimitiveValue> for PrimitiveValue
[src]
pub fn eq(&self, other: &PrimitiveValue) -> bool
[src]
pub fn ne(&self, other: &PrimitiveValue) -> bool
[src]
impl StructuralPartialEq for PrimitiveValue
[src]
Auto Trait Implementations
impl RefUnwindSafe for PrimitiveValue
[src]
impl Send for PrimitiveValue
[src]
impl Sync for PrimitiveValue
[src]
impl Unpin for PrimitiveValue
[src]
impl UnwindSafe for PrimitiveValue
[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>,