pub struct TextBoxSnapshotBuilder { /* private fields */ }Available on crate features
experimental and DOMSnapshot and CSS and DOM and DOMDebugger and Page only.Implementations§
Source§impl TextBoxSnapshotBuilder
impl TextBoxSnapshotBuilder
Sourcepub fn layout_index(&mut self, v: Vec<u32>) -> &mut Self
pub fn layout_index(&mut self, v: Vec<u32>) -> &mut Self
Index of the layout tree node that owns this box collection.
Sourcepub fn start(&mut self, v: Vec<u32>) -> &mut Self
pub fn start(&mut self, v: Vec<u32>) -> &mut Self
The starting index in characters, for this post layout textbox substring. Characters that would be represented as a surrogate pair in UTF-16 have length 2.
Sourcepub fn length(&mut self, v: Vec<u32>) -> &mut Self
pub fn length(&mut self, v: Vec<u32>) -> &mut Self
The number of characters in this post layout textbox substring. Characters that would be represented as a surrogate pair in UTF-16 have length 2.
pub fn build(&mut self) -> Result<TextBoxSnapshot, &'static str>
Trait Implementations§
Source§impl Clone for TextBoxSnapshotBuilder
impl Clone for TextBoxSnapshotBuilder
Source§fn clone(&self) -> TextBoxSnapshotBuilder
fn clone(&self) -> TextBoxSnapshotBuilder
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 moreSource§impl Debug for TextBoxSnapshotBuilder
impl Debug for TextBoxSnapshotBuilder
Auto Trait Implementations§
impl Freeze for TextBoxSnapshotBuilder
impl RefUnwindSafe for TextBoxSnapshotBuilder
impl Send for TextBoxSnapshotBuilder
impl Sync for TextBoxSnapshotBuilder
impl Unpin for TextBoxSnapshotBuilder
impl UnwindSafe for TextBoxSnapshotBuilder
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