pub struct Target {
pub path: Vec<usize>,
pub id: Option<&'static str>,
pub focusable: bool,
pub row_key: Option<RowKey>,
pub text_link: Option<TextLinkTarget>,
/* private fields */
}Fields§
§path: Vec<usize>§id: Option<&'static str>ID of an element constructed with a static name.
focusable: bool§row_key: Option<RowKey>§text_link: Option<TextLinkTarget>Implementations§
Source§impl Target
impl Target
Sourcepub fn from_node(
path: Vec<usize>,
node: &Node,
focusable: bool,
row_key: Option<RowKey>,
) -> Self
pub fn from_node( path: Vec<usize>, node: &Node, focusable: bool, row_key: Option<RowKey>, ) -> Self
Capture the source identity of a node at its current scene path.
Sourcepub fn element_id(&self) -> Option<&str>
pub fn element_id(&self) -> Option<&str>
The captured source ID, including dynamically loaded elements.
pub fn text_link_index(&self) -> Option<usize>
Trait Implementations§
Auto Trait Implementations§
impl Forget for Target
impl Freeze for Target
impl Move for Target
impl RefUnwindSafe for Target
impl Send for Target
impl Sync for Target
impl Unpin for Target
impl UnsafeUnpin for Target
impl UnwindSafe for Target
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