Struct layout_2020::flow::float::FloatBand
source · pub struct FloatBand {
pub top: Au,
pub left: Option<Au>,
pub right: Option<Au>,
}
Expand description
Internal data structure that describes a nonoverlapping vertical region in which floats may be
placed. Floats must go between “left edge + left
” and “right edge - right
”.
Fields§
§top: Au
The logical vertical position of the top of this band.
left: Option<Au>
The distance from the left edge of the block formatting context to the first legal
(logically) horizontal position where floats may be placed. If None
, there are no floats
to the left; distinguishing between the cases of “a zero-width float is present” and “no
floats at all are present” is necessary to, for example, clear past zero-width floats.
right: Option<Au>
The distance from the left edge of the block formatting context to the first legal
(logically) horizontal position where floats may be placed. If None
, there are no floats
to the right; distinguishing between the cases of “a zero-width float is present” and “no
floats at all are present” is necessary to, for example, clear past zero-width floats.
Implementations§
source§impl FloatBand
impl FloatBand
sourcefn object_fits(
&self,
object: &PlacementInfo,
walls: &ContainingBlockPositionInfo,
) -> bool
fn object_fits( &self, object: &PlacementInfo, walls: &ContainingBlockPositionInfo, ) -> bool
Determines whether an object fits in a band. Returns true if the object fits.
Trait Implementations§
source§impl PartialEq for FloatBand
impl PartialEq for FloatBand
impl Copy for FloatBand
impl StructuralPartialEq for FloatBand
Auto Trait Implementations§
impl Freeze for FloatBand
impl RefUnwindSafe for FloatBand
impl Send for FloatBand
impl Sync for FloatBand
impl Unpin for FloatBand
impl UnwindSafe for FloatBand
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
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>
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