#[repr(i32)]pub enum PType {
U8 = 0,
U16 = 1,
U32 = 2,
U64 = 3,
I8 = 4,
I16 = 5,
I32 = 6,
I64 = 7,
F16 = 8,
F32 = 9,
F64 = 10,
}Variants§
Implementations§
Source§impl PType
impl PType
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 Ord for PType
impl Ord for PType
Source§impl PartialOrd for PType
impl PartialOrd for PType
impl Copy for PType
impl Eq for PType
impl StructuralPartialEq for PType
Auto Trait Implementations§
impl Freeze for PType
impl RefUnwindSafe for PType
impl Send for PType
impl Sync for PType
impl Unpin for PType
impl UnwindSafe for PType
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