Enum TextRelation
#[non_exhaustive]pub enum TextRelation {
Child,
Argument,
Separator,
Fallback,
HoverText,
HoverEntityName,
}Expand description
Relation to an earlier row. Unknown discriminants are rejected by bindings.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Child
Appended component.
Argument
Translation argument.
Separator
Selector or NBT separator.
Fallback
Inline object fallback.
HoverText
Hover text.
HoverEntityName
Hover entity name.
Trait Implementations§
§impl Clone for TextRelation
impl Clone for TextRelation
§fn clone(&self) -> TextRelation
fn clone(&self) -> TextRelation
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 moreimpl Copy for TextRelation
§impl Debug for TextRelation
impl Debug for TextRelation
impl Eq for TextRelation
§impl PartialEq for TextRelation
impl PartialEq for TextRelation
impl StructuralPartialEq for TextRelation
Auto Trait Implementations§
impl Freeze for TextRelation
impl RefUnwindSafe for TextRelation
impl Send for TextRelation
impl Sync for TextRelation
impl Unpin for TextRelation
impl UnsafeUnpin for TextRelation
impl UnwindSafe for TextRelation
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