pub struct SemanticsTag {
pub name: String,
}Expand description
A tag for a SemanticsNode.
Tags can be interpreted by the parent of a SemanticsNode
and depending on the presence of a tag the parent can for example decide
how to add the tagged node as a child. Tags are not sent to the engine.
The provided name is only used for debugging. Two tags are identical only
when they are the same object: held as Rc<SemanticsTag>, the Rc’s identity.
Fields§
§name: StringA human-readable name for this tag used for debugging.
This string is not used to determine if two tags are identical.
Implementations§
Source§impl SemanticsTag
impl SemanticsTag
Sourcepub fn new(name: impl Into<String>) -> Rc<SemanticsTag>
pub fn new(name: impl Into<String>) -> Rc<SemanticsTag>
Creates a SemanticsTag.
Trait Implementations§
Auto Trait Implementations§
impl Forget for SemanticsTag
impl Freeze for SemanticsTag
impl Move for SemanticsTag
impl RefUnwindSafe for SemanticsTag
impl Send for SemanticsTag
impl Sync for SemanticsTag
impl Unpin for SemanticsTag
impl UnsafeUnpin for SemanticsTag
impl UnwindSafe for SemanticsTag
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