#[non_exhaustive]pub enum Region<'a> {
Rect([f64; 2], [f64; 2]),
Polygon(&'a [[f64; 2]]),
}Expand description
an area selection’s region in drawing units (Scene::select)
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Rect([f64; 2], [f64; 2])
two opposite corners of an axis-aligned rectangle
Polygon(&'a [[f64; 2]])
a closed polygon (even-odd; AutoCAD’s WPolygon and CPolygon)
Trait Implementations§
Auto Trait Implementations§
impl<'a> Forget for Region<'a>
impl<'a> Freeze for Region<'a>
impl<'a> Move for Region<'a>
impl<'a> RefUnwindSafe for Region<'a>
impl<'a> Send for Region<'a>
impl<'a> Sync for Region<'a>
impl<'a> Unpin for Region<'a>
impl<'a> UnsafeUnpin for Region<'a>
impl<'a> UnwindSafe for Region<'a>
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