#[repr(i32)]pub enum DataLocation {
Default = 0,
External = 1,
}Expand description
Location of the data for this tensor. MUST be one of:
- DEFAULT - data stored inside the protobuf message. Data is stored in raw_data (if set) otherwise in type-specified field.
- EXTERNAL - data stored in an external location as described by external_data field.
Variants§
Implementations§
Source§impl DataLocation
impl DataLocation
Source§impl DataLocation
impl DataLocation
Sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
Sourcepub fn from_str_name(value: &str) -> Option<DataLocation>
pub fn from_str_name(value: &str) -> Option<DataLocation>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
Source§impl Clone for DataLocation
impl Clone for DataLocation
Source§fn clone(&self) -> DataLocation
fn clone(&self) -> DataLocation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DataLocation
Source§impl Debug for DataLocation
impl Debug for DataLocation
Source§impl Default for DataLocation
impl Default for DataLocation
Source§fn default() -> DataLocation
fn default() -> DataLocation
Returns the “default value” for a type. Read more
impl Eq for DataLocation
Source§impl Hash for DataLocation
impl Hash for DataLocation
Source§impl Ord for DataLocation
impl Ord for DataLocation
Source§fn cmp(&self, other: &DataLocation) -> Ordering
fn cmp(&self, other: &DataLocation) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for DataLocation
impl PartialEq for DataLocation
Source§fn eq(&self, other: &DataLocation) -> bool
fn eq(&self, other: &DataLocation) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for DataLocation
impl PartialOrd for DataLocation
impl StructuralPartialEq for DataLocation
Source§impl TryFrom<i32> for DataLocation
impl TryFrom<i32> for DataLocation
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
Source§fn try_from(value: i32) -> Result<DataLocation, UnknownEnumValue>
fn try_from(value: i32) -> Result<DataLocation, UnknownEnumValue>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for DataLocation
impl RefUnwindSafe for DataLocation
impl Send for DataLocation
impl Sync for DataLocation
impl Unpin for DataLocation
impl UnsafeUnpin for DataLocation
impl UnwindSafe for DataLocation
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more