pub struct ScrollIntoViewIfNeededBuilder { /* private fields */ }Expand description
Builder for ScrollIntoViewIfNeeded.
Implementations§
Source§impl ScrollIntoViewIfNeededBuilder
impl ScrollIntoViewIfNeededBuilder
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.
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.
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 wrapper.
Sourcepub fn rect<VALUE: Into<Rect>>(&mut self, value: VALUE) -> &mut Self
pub fn rect<VALUE: Into<Rect>>(&mut self, value: VALUE) -> &mut Self
The rect to be scrolled into view, relative to the node’s border box, in CSS pixels. When omitted, center of the node will be used, similar to Element.scrollIntoView.
Sourcepub fn build(
&self,
) -> Result<ScrollIntoViewIfNeeded, ScrollIntoViewIfNeededBuilderError>
pub fn build( &self, ) -> Result<ScrollIntoViewIfNeeded, ScrollIntoViewIfNeededBuilderError>
Trait Implementations§
Source§impl Clone for ScrollIntoViewIfNeededBuilder
impl Clone for ScrollIntoViewIfNeededBuilder
Source§fn clone(&self) -> ScrollIntoViewIfNeededBuilder
fn clone(&self) -> ScrollIntoViewIfNeededBuilder
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 ScrollIntoViewIfNeededBuilder
impl RefUnwindSafe for ScrollIntoViewIfNeededBuilder
impl Send for ScrollIntoViewIfNeededBuilder
impl Sync for ScrollIntoViewIfNeededBuilder
impl Unpin for ScrollIntoViewIfNeededBuilder
impl UnsafeUnpin for ScrollIntoViewIfNeededBuilder
impl UnwindSafe for ScrollIntoViewIfNeededBuilder
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