pub struct StatementOpt {
pub name: Name,
pub value: StatementOptValue,
}
Fields§
§name: Name
§value: StatementOptValue
Implementations§
Source§impl StatementOpt
impl StatementOpt
pub fn new<N: Into<Name>>(name: N, value: StatementOptValue) -> Self
Trait Implementations§
Source§impl Clone for StatementOpt
impl Clone for StatementOpt
Source§fn clone(&self) -> StatementOpt
fn clone(&self) -> StatementOpt
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 StatementOpt
impl<'a> CustomToTokens<'a> for StatementOpt
Source§impl Debug for StatementOpt
impl Debug for StatementOpt
Source§impl Display for StatementOpt
impl Display for StatementOpt
Source§impl FromStr for StatementOpt
impl FromStr for StatementOpt
Source§impl Parse for StatementOpt
impl Parse for StatementOpt
type Output = StatementOpt
fn parse(s: &mut StatementStream<'_>) -> Result<Self::Output>
Source§impl PartialEq for StatementOpt
impl PartialEq for StatementOpt
Source§impl ToTokens for StatementOpt
impl ToTokens for StatementOpt
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,
Source§impl TryFrom<TaggedStatementOpt> for StatementOpt
impl TryFrom<TaggedStatementOpt> for StatementOpt
impl Eq for StatementOpt
impl StructuralPartialEq for StatementOpt
Auto Trait Implementations§
impl Freeze for StatementOpt
impl RefUnwindSafe for StatementOpt
impl Send for StatementOpt
impl Sync for StatementOpt
impl Unpin for StatementOpt
impl UnwindSafe for StatementOpt
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