pub struct ScrollIntoViewIfNeededCommandBuilder { /* private fields */ }Available on crate features
DOM and Runtime and experimental only.Implementations§
Source§impl ScrollIntoViewIfNeededCommandBuilder
impl ScrollIntoViewIfNeededCommandBuilder
Sourcepub fn backend_node_id(&mut self, v: BackendNodeId) -> &mut Self
pub fn backend_node_id(&mut self, v: BackendNodeId) -> &mut Self
Identifier of the backend node.
Sourcepub fn object_id(&mut self, v: RemoteObjectId) -> &mut Self
pub fn object_id(&mut self, v: RemoteObjectId) -> &mut Self
JavaScript object id of the node wrapper.
Sourcepub fn rect(&mut self, v: Rect) -> &mut Self
pub fn rect(&mut self, v: Rect) -> &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.
pub fn build(&mut self) -> Result<ScrollIntoViewIfNeededCommand, &'static str>
Trait Implementations§
Source§impl Clone for ScrollIntoViewIfNeededCommandBuilder
impl Clone for ScrollIntoViewIfNeededCommandBuilder
Source§fn clone(&self) -> ScrollIntoViewIfNeededCommandBuilder
fn clone(&self) -> ScrollIntoViewIfNeededCommandBuilder
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 ScrollIntoViewIfNeededCommandBuilder
impl RefUnwindSafe for ScrollIntoViewIfNeededCommandBuilder
impl Send for ScrollIntoViewIfNeededCommandBuilder
impl Sync for ScrollIntoViewIfNeededCommandBuilder
impl Unpin for ScrollIntoViewIfNeededCommandBuilder
impl UnwindSafe for ScrollIntoViewIfNeededCommandBuilder
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