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

pub struct EnumValue {
    pub enum_value: Option<i32>,
    pub repeated_enum_value: Vec<i32>,
}

Fields

enum_value: Option<i32>repeated_enum_value: Vec<i32>

Implementations

impl EnumValue[src]

pub fn enum_value(&self) -> Color[src]

Returns the enum value of enum_value, or the default if the field is unset or set to an invalid enum value.

pub fn set_enum_value(&mut self, value: Color)[src]

Sets enum_value to the provided enum value.

pub fn repeated_enum_value(
    &self
) -> FilterMap<Cloned<Iter<'_, i32>>, fn(_: i32) -> Option<Color>>
[src]

Returns an iterator which yields the valid enum values contained in repeated_enum_value.

pub fn push_repeated_enum_value(&mut self, value: Color)[src]

Appends the provided enum value to repeated_enum_value.

Trait Implementations

impl Clone for EnumValue[src]

impl Debug for EnumValue[src]

impl Default for EnumValue[src]

impl Message for EnumValue[src]

impl PartialEq<EnumValue> for EnumValue[src]

impl StructuralPartialEq for EnumValue[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.