pub struct BfcState {
pub pen: LogicalPosition,
pub floats: FloatingContext,
pub margins: MarginCollapseContext,
}Expand description
Manages all layout state for a single Block Formatting Context. This struct is created by the BFC root and lives for the duration of its layout.
Fields§
§pen: LogicalPositionThe current position for the next in-flow block element.
floats: FloatingContextThe state of all floated elements within this BFC.
margins: MarginCollapseContextThe state of margin collapsing within this BFC.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BfcState
impl RefUnwindSafe for BfcState
impl Send for BfcState
impl Sync for BfcState
impl Unpin for BfcState
impl UnwindSafe for BfcState
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