pub struct HBand {
pub t: i16,
pub h: NonZeroI16,
}
Fields§
§t: i16
§h: NonZeroI16
Implementations§
Source§impl HBand
impl HBand
pub fn from_t_b(t: i16, b: i16) -> Option<HBand>
pub fn from_v_range(v_range: Range1d) -> Option<HBand>
pub fn b(self) -> i16
pub fn v_range(self) -> Range1d ⓘ
pub fn offset(self, d: Vector) -> HBand
pub fn relative_to(self, base: Point) -> HBand
pub fn absolute_with(self, base: Point) -> HBand
Trait Implementations§
impl Copy for HBand
impl Eq for HBand
impl StructuralPartialEq for HBand
Auto Trait Implementations§
impl Freeze for HBand
impl RefUnwindSafe for HBand
impl Send for HBand
impl Sync for HBand
impl Unpin for HBand
impl UnwindSafe for HBand
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