pub struct Expression(/* private fields */);Expand description
The Expression struct contains a Rust expression that can be used to define a value for an
exported constant. The struct is created by converting a TokenStream using the
Expression::try_from function.
Trait Implementations§
Source§impl Clone for Expression
impl Clone for Expression
Source§fn clone(&self) -> Expression
fn clone(&self) -> Expression
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 From<Expression> for Return
impl From<Expression> for Return
Source§fn from(value: Expression) -> Self
fn from(value: Expression) -> Self
Converts to this type from the input type.
Source§impl TryFrom<TokenStream> for Expression
impl TryFrom<TokenStream> for Expression
Auto Trait Implementations§
impl Freeze for Expression
impl RefUnwindSafe for Expression
impl !Send for Expression
impl !Sync for Expression
impl Unpin for Expression
impl UnwindSafe for Expression
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