pub struct Destination {
pub page: Option<usize>,
pub page_ref: Option<ObjectId>,
pub view: DestView,
}Expand description
A resolved destination: where in the document to go, and how to view it.
Fields§
§page: Option<usize>0-based index of the target page, when its reference is a page in this
document’s page tree. None when the destination names a page object not
in the tree, or gives a bare page number out of range (remote go-to).
page_ref: Option<ObjectId>The target page object reference, when the destination gave one (an
explicit array whose first element is an indirect reference). None when
the destination instead gave a page number (e.g. a remote go-to dest).
view: DestViewThe view (zoom / fit) at the destination.
Trait Implementations§
Source§impl Clone for Destination
impl Clone for Destination
Source§fn clone(&self) -> Destination
fn clone(&self) -> Destination
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 Destination
impl Debug for Destination
Source§impl PartialEq for Destination
impl PartialEq for Destination
Source§fn eq(&self, other: &Destination) -> bool
fn eq(&self, other: &Destination) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for Destination
Auto Trait Implementations§
impl Freeze for Destination
impl RefUnwindSafe for Destination
impl Send for Destination
impl Sync for Destination
impl Unpin for Destination
impl UnsafeUnpin for Destination
impl UnwindSafe for Destination
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