#[repr(i32)]pub enum ConstantKindCase {
Unspecified = 0,
Null = 1,
Bool = 2,
Int = 3,
Uint = 4,
Double = 5,
Bytes = 6,
String = 7,
Duration = 8,
Timestamp = 9,
}Variants§
Unspecified = 0
Null = 1
Bool = 2
Int = 3
Uint = 4
Double = 5
Bytes = 6
String = 7
Duration = 8
Timestamp = 9
Implementations§
Source§impl ConstantKindCase
impl ConstantKindCase
pub fn is_unspecified(&self) -> bool
pub fn is_null(&self) -> bool
pub fn is_bool(&self) -> bool
pub fn is_int(&self) -> bool
pub fn is_uint(&self) -> bool
pub fn is_double(&self) -> bool
pub fn is_bytes(&self) -> bool
pub fn is_string(&self) -> bool
pub fn is_duration(&self) -> bool
pub fn is_timestamp(&self) -> bool
Trait Implementations§
Source§impl Clone for ConstantKindCase
impl Clone for ConstantKindCase
Source§fn clone(&self) -> ConstantKindCase
fn clone(&self) -> ConstantKindCase
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 ConstantKindCase
impl Debug for ConstantKindCase
Source§impl ExternType for ConstantKindCase
impl ExternType for ConstantKindCase
Source§impl Hash for ConstantKindCase
impl Hash for ConstantKindCase
Source§impl PartialEq for ConstantKindCase
impl PartialEq for ConstantKindCase
impl Copy for ConstantKindCase
impl Eq for ConstantKindCase
impl StructuralPartialEq for ConstantKindCase
Auto Trait Implementations§
impl Freeze for ConstantKindCase
impl RefUnwindSafe for ConstantKindCase
impl Send for ConstantKindCase
impl Sync for ConstantKindCase
impl Unpin for ConstantKindCase
impl UnwindSafe for ConstantKindCase
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)