pub enum ComponentValue {
PreservedToken(Token),
Function(Function),
SimpleBlock(SimpleBlock),
}Expand description
§5.2 L1681-1685: A component value is one of the preserved tokens, a function, or a simple block.
Variants§
PreservedToken(Token)
§5.2 L1687-1703: A preserved token (any token except
function-token, {-token, (-token, [-token — those are
always consumed into higher-level objects).
Function(Function)
§5.2 L1705-1708: A function.
SimpleBlock(SimpleBlock)
§5.2 L1710-1719: A simple block.
Trait Implementations§
Source§impl Clone for ComponentValue
impl Clone for ComponentValue
Source§fn clone(&self) -> ComponentValue
fn clone(&self) -> ComponentValue
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ComponentValue
impl RefUnwindSafe for ComponentValue
impl Send for ComponentValue
impl Sync for ComponentValue
impl Unpin for ComponentValue
impl UnsafeUnpin for ComponentValue
impl UnwindSafe for ComponentValue
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