pub enum ProtobufConstant {
Int(LitInt),
Float(LitFloat),
Bool(LitBool),
Ident(ProtobufPath),
String(LitStr),
Message(ProtobufConstantMessage),
}
Variants§
Int(LitInt)
Float(LitFloat)
Bool(LitBool)
Ident(ProtobufPath)
String(LitStr)
Message(ProtobufConstantMessage)
Trait Implementations§
Source§impl Clone for ProtobufConstant
impl Clone for ProtobufConstant
Source§fn clone(&self) -> ProtobufConstant
fn clone(&self) -> ProtobufConstant
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ProtobufConstant
impl Debug for ProtobufConstant
Source§impl Parse for ProtobufConstant
impl Parse for ProtobufConstant
fn parse(input: ParseStream<'_>) -> Result<Self>
Auto Trait Implementations§
impl Freeze for ProtobufConstant
impl RefUnwindSafe for ProtobufConstant
impl !Send for ProtobufConstant
impl !Sync for ProtobufConstant
impl Unpin for ProtobufConstant
impl UnwindSafe for ProtobufConstant
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