pub struct DocumentSnapshot { /* private fields */ }Expand description
Document snapshot.
Implementations§
Source§impl DocumentSnapshot
impl DocumentSnapshot
pub fn builder( documentURL: StringIndex, title: StringIndex, baseURL: StringIndex, contentLanguage: StringIndex, encodingName: StringIndex, publicId: StringIndex, systemId: StringIndex, frameId: StringIndex, nodes: NodeTreeSnapshot, layout: LayoutTreeSnapshot, textBoxes: TextBoxSnapshot, ) -> DocumentSnapshotBuilder
pub fn documentURL(&self) -> &StringIndex
pub fn title(&self) -> &StringIndex
pub fn baseURL(&self) -> &StringIndex
pub fn contentLanguage(&self) -> &StringIndex
pub fn encodingName(&self) -> &StringIndex
pub fn publicId(&self) -> &StringIndex
pub fn systemId(&self) -> &StringIndex
pub fn frameId(&self) -> &StringIndex
pub fn nodes(&self) -> &NodeTreeSnapshot
pub fn layout(&self) -> &LayoutTreeSnapshot
pub fn textBoxes(&self) -> &TextBoxSnapshot
pub fn scrollOffsetX(&self) -> Option<f64>
pub fn scrollOffsetY(&self) -> Option<f64>
pub fn contentWidth(&self) -> Option<f64>
pub fn contentHeight(&self) -> Option<f64>
Trait Implementations§
Source§impl Clone for DocumentSnapshot
impl Clone for DocumentSnapshot
Source§fn clone(&self) -> DocumentSnapshot
fn clone(&self) -> DocumentSnapshot
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DocumentSnapshot
impl Debug for DocumentSnapshot
Source§impl Default for DocumentSnapshot
impl Default for DocumentSnapshot
Source§fn default() -> DocumentSnapshot
fn default() -> DocumentSnapshot
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DocumentSnapshot
impl<'de> Deserialize<'de> for DocumentSnapshot
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for DocumentSnapshot
impl RefUnwindSafe for DocumentSnapshot
impl Send for DocumentSnapshot
impl Sync for DocumentSnapshot
impl Unpin for DocumentSnapshot
impl UnsafeUnpin for DocumentSnapshot
impl UnwindSafe for DocumentSnapshot
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