Struct layout_2020::flow::float::FloatBand
source · pub struct FloatBand {
pub top: Au,
pub inline_start: Option<Au>,
pub inline_end: Option<Au>,
}
Expand description
Internal data structure that describes a nonoverlapping vertical region in which floats may be placed.
Floats must go between “inline-start edge + inline_start
” and “inline-end edge - inline_end
”.
Fields§
§top: Au
The logical vertical position of the top of this band.
inline_start: Option<Au>
The distance from the inline-start 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 inline-start; 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.
inline_end: Option<Au>
The distance from the inline-start edge of the block formatting context to the last legal
(logically) horizontal position where floats may be placed. If None
, there are no floats
to the inline-end; 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§
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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