pub struct Region<M: AsRef<[u8]> = Vec<u8>> {
pub rect: Rect,
pub exclusions: Vec<Rect>,
pub crop: Option<Rect>,
pub solid: bool,
pub mask: Option<Mask<M>>,
}Fields§
§rect: Rect§exclusions: Vec<Rect>§crop: Option<Rect>§solid: bool§mask: Option<Mask<M>>Implementations§
Auto Trait Implementations§
impl<M> Freeze for Region<M>
impl<M> RefUnwindSafe for Region<M>
impl<M> Send for Region<M>
impl<M> Sync for Region<M>
impl<M> Unpin for Region<M>
impl<M> UnsafeUnpin for Region<M>
impl<M> UnwindSafe for Region<M>
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more