#[repr(i32)]pub enum SparsityType {
SparsityInvalid = 0,
SparsityStructuredNM = 1,
}Variants§
Implementations§
Source§impl SparsityType
impl SparsityType
Source§impl SparsityType
impl SparsityType
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<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
Source§impl Clone for SparsityType
impl Clone for SparsityType
Source§fn clone(&self) -> SparsityType
fn clone(&self) -> SparsityType
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SparsityType
impl Debug for SparsityType
Source§impl Default for SparsityType
impl Default for SparsityType
Source§fn default() -> SparsityType
fn default() -> SparsityType
Returns the “default value” for a type. Read more
Source§impl From<SparsityType> for i32
impl From<SparsityType> for i32
Source§fn from(value: SparsityType) -> i32
fn from(value: SparsityType) -> i32
Converts to this type from the input type.
Source§impl Hash for SparsityType
impl Hash for SparsityType
Source§impl Ord for SparsityType
impl Ord for SparsityType
Source§impl PartialEq for SparsityType
impl PartialEq for SparsityType
Source§impl PartialOrd for SparsityType
impl PartialOrd for SparsityType
Source§impl TryFrom<i32> for SparsityType
impl TryFrom<i32> for SparsityType
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
Source§fn try_from(value: i32) -> Result<SparsityType, UnknownEnumValue>
fn try_from(value: i32) -> Result<SparsityType, UnknownEnumValue>
Performs the conversion.
impl Copy for SparsityType
impl Eq for SparsityType
impl StructuralPartialEq for SparsityType
Auto Trait Implementations§
impl Freeze for SparsityType
impl RefUnwindSafe for SparsityType
impl Send for SparsityType
impl Sync for SparsityType
impl Unpin for SparsityType
impl UnwindSafe for SparsityType
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)