pub struct HighlightNodeBuilder { /* private fields */ }Expand description
Builder for HighlightNode.
Implementations§
Source§impl HighlightNodeBuilder
impl HighlightNodeBuilder
Sourcepub fn highlight_config<VALUE: Into<HighlightConfig>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn highlight_config<VALUE: Into<HighlightConfig>>( &mut self, value: VALUE, ) -> &mut Self
A descriptor for the highlight appearance.
Sourcepub fn node_id<VALUE: Into<NodeId>>(&mut self, value: VALUE) -> &mut Self
pub fn node_id<VALUE: Into<NodeId>>(&mut self, value: VALUE) -> &mut Self
Identifier of the node to highlight.
Sourcepub fn backend_node_id<VALUE: Into<BackendNodeId>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn backend_node_id<VALUE: Into<BackendNodeId>>( &mut self, value: VALUE, ) -> &mut Self
Identifier of the backend node to highlight.
Sourcepub fn object_id<VALUE: Into<RemoteObjectId>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn object_id<VALUE: Into<RemoteObjectId>>( &mut self, value: VALUE, ) -> &mut Self
JavaScript object id of the node to be highlighted.
Sourcepub fn selector<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn selector<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Selectors to highlight relevant nodes.
Sourcepub fn build(&self) -> Result<HighlightNode, HighlightNodeBuilderError>
pub fn build(&self) -> Result<HighlightNode, HighlightNodeBuilderError>
Trait Implementations§
Source§impl Clone for HighlightNodeBuilder
impl Clone for HighlightNodeBuilder
Source§fn clone(&self) -> HighlightNodeBuilder
fn clone(&self) -> HighlightNodeBuilder
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for HighlightNodeBuilder
impl RefUnwindSafe for HighlightNodeBuilder
impl Send for HighlightNodeBuilder
impl Sync for HighlightNodeBuilder
impl Unpin for HighlightNodeBuilder
impl UnsafeUnpin for HighlightNodeBuilder
impl UnwindSafe for HighlightNodeBuilder
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