Struct pdfium_render::page::PdfRect
source · [−]pub struct PdfRect {
pub bottom: PdfPoints,
pub left: PdfPoints,
pub top: PdfPoints,
pub right: PdfPoints,
}Expand description
Fields
bottom: PdfPointsleft: PdfPointstop: PdfPointsright: PdfPointsImplementations
sourceimpl PdfRect
impl PdfRect
sourcepub fn is_inside(&self, rect: &PdfRect) -> bool
pub fn is_inside(&self, rect: &PdfRect) -> bool
Returns true if the bounds of this PdfRect lie entirely within the given rectangle.
sourcepub fn does_overlap(&self, rect: &PdfRect) -> bool
pub fn does_overlap(&self, rect: &PdfRect) -> bool
Returns true if the bounds of this PdfRect lie at least partially within
the given rectangle.
Trait Implementations
impl Copy for PdfRect
impl StructuralPartialEq for PdfRect
Auto Trait Implementations
impl RefUnwindSafe for PdfRect
impl Send for PdfRect
impl Sync for PdfRect
impl Unpin for PdfRect
impl UnwindSafe for PdfRect
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more