pub enum StatementOptValue {
Identifier(Name),
Constant(Constant),
Map(MapLiteral),
}
Variants§
Trait Implementations§
Source§impl Clone for StatementOptValue
impl Clone for StatementOptValue
Source§fn clone(&self) -> StatementOptValue
fn clone(&self) -> StatementOptValue
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'a> CustomToTokens<'a> for StatementOptValue
impl<'a> CustomToTokens<'a> for StatementOptValue
Source§impl Debug for StatementOptValue
impl Debug for StatementOptValue
Source§impl Display for StatementOptValue
impl Display for StatementOptValue
Source§impl From<Constant> for StatementOptValue
impl From<Constant> for StatementOptValue
Source§fn from(original: Constant) -> StatementOptValue
fn from(original: Constant) -> StatementOptValue
Converts to this type from the input type.
Source§impl From<MapLiteral> for StatementOptValue
impl From<MapLiteral> for StatementOptValue
Source§fn from(original: MapLiteral) -> StatementOptValue
fn from(original: MapLiteral) -> StatementOptValue
Converts to this type from the input type.
Source§impl From<Name> for StatementOptValue
impl From<Name> for StatementOptValue
Source§fn from(original: Name) -> StatementOptValue
fn from(original: Name) -> StatementOptValue
Converts to this type from the input type.
Source§impl FromStr for StatementOptValue
impl FromStr for StatementOptValue
Source§impl Parse for StatementOptValue
impl Parse for StatementOptValue
type Output = StatementOptValue
fn parse(s: &mut StatementStream<'_>) -> Result<Self::Output>
Source§impl PartialEq for StatementOptValue
impl PartialEq for StatementOptValue
Source§impl ToTokens for StatementOptValue
impl ToTokens for StatementOptValue
Source§fn to_token_stream(&self) -> TokenStream
fn to_token_stream(&self) -> TokenStream
Source§fn into_token_stream(self) -> TokenStreamwhere
Self: Sized,
fn into_token_stream(self) -> TokenStreamwhere
Self: Sized,
impl Eq for StatementOptValue
impl StructuralPartialEq for StatementOptValue
Auto Trait Implementations§
impl Freeze for StatementOptValue
impl RefUnwindSafe for StatementOptValue
impl Send for StatementOptValue
impl Sync for StatementOptValue
impl Unpin for StatementOptValue
impl UnwindSafe for StatementOptValue
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