pub enum ExecuteRawComponent {
String(Rc<str>),
ScoreboardValue(ScoreboardValue),
Node(Node),
}
Expand description
A component for a raw execute command
Variants§
String(Rc<str>)
Writes a string literal
ScoreboardValue(ScoreboardValue)
References the value locations
Node(Node)
Embeds another node in the output
Trait Implementations§
source§impl Clone for ExecuteRawComponent
impl Clone for ExecuteRawComponent
source§fn clone(&self) -> ExecuteRawComponent
fn clone(&self) -> ExecuteRawComponent
Returns a copy 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 ExecuteRawComponent
impl Debug for ExecuteRawComponent
source§impl PartialEq for ExecuteRawComponent
impl PartialEq for ExecuteRawComponent
source§fn eq(&self, other: &ExecuteRawComponent) -> bool
fn eq(&self, other: &ExecuteRawComponent) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ExecuteRawComponent
impl StructuralEq for ExecuteRawComponent
impl StructuralPartialEq for ExecuteRawComponent
Auto Trait Implementations§
impl RefUnwindSafe for ExecuteRawComponent
impl !Send for ExecuteRawComponent
impl !Sync for ExecuteRawComponent
impl Unpin for ExecuteRawComponent
impl UnwindSafe for ExecuteRawComponent
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.