Enum tfrecord::protos::tensor_slice_proto::extent::HasLength[][src]

pub enum HasLength {
    Length(i64),
}

Length of the slice: if the length is missing or -1 we will interpret this as “everything in this dimension”. We use “oneof” to preserve information about whether the length is present without changing the serialization format from the prior proto2 version of this proto.

Variants

Length(i64)

Implementations

impl HasLength[src]

pub fn encode<B>(&self, buf: &mut B) where
    B: BufMut
[src]

pub fn merge<B>(
    field: &mut Option<HasLength>,
    tag: u32,
    wire_type: WireType,
    buf: &mut B,
    ctx: DecodeContext
) -> Result<(), DecodeError> where
    B: Buf
[src]

pub fn encoded_len(&self) -> usize[src]

Trait Implementations

impl Clone for HasLength[src]

impl Debug for HasLength[src]

impl<'de> Deserialize<'de> for HasLength[src]

impl PartialEq<HasLength> for HasLength[src]

impl Serialize for HasLength[src]

impl StructuralPartialEq for HasLength[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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

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

impl<T> Pointable for T

type Init = T

The type for initializers.

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,