pub struct VBand {
pub l: i16,
pub w: NonZeroI16,
}
Fields§
§l: i16
§w: NonZeroI16
Implementations§
Source§impl VBand
impl VBand
pub fn from_l_r(l: i16, r: i16) -> Option<VBand>
pub fn from_h_range(h_range: Range1d) -> Option<VBand>
pub fn r(self) -> i16
pub fn h_range(self) -> Range1d ⓘ
pub fn offset(self, d: Vector) -> VBand
pub fn relative_to(self, base: Point) -> VBand
pub fn absolute_with(self, base: Point) -> VBand
Trait Implementations§
impl Copy for VBand
impl Eq for VBand
impl StructuralPartialEq for VBand
Auto Trait Implementations§
impl Freeze for VBand
impl RefUnwindSafe for VBand
impl Send for VBand
impl Sync for VBand
impl Unpin for VBand
impl UnwindSafe for VBand
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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