[][src]Struct tensorflow_proto::tensorflow::contrib::proto::PrimitiveValue

pub struct PrimitiveValue {
    pub double_value: Option<f64>,
    pub float_value: Option<f32>,
    pub int64_value: Option<i64>,
    pub uint64_value: Option<u64>,
    pub int32_value: Option<i32>,
    pub fixed64_value: Option<u64>,
    pub fixed32_value: Option<u32>,
    pub bool_value: Option<bool>,
    pub string_value: Option<String>,
    pub bytes_value: Option<Vec<u8>>,
    pub uint32_value: Option<u32>,
    pub sfixed32_value: Option<i32>,
    pub sfixed64_value: Option<i64>,
    pub sint32_value: Option<i32>,
    pub sint64_value: Option<i64>,
}

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]

impl Debug for PrimitiveValue[src]

impl Default for PrimitiveValue[src]

impl Message for PrimitiveValue[src]

impl PartialEq<PrimitiveValue> for PrimitiveValue[src]

impl StructuralPartialEq for PrimitiveValue[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.