pub struct SplitResult<ET: EngineTypes> {
pub first: Vec<VNode<ET>>,
pub rest: Vec<VNode<ET>>,
pub split_penalty: Option<i32>,
}Expand description
The result of splitting a vertical list
Fields§
§first: Vec<VNode<ET>>The nodes before the split
rest: Vec<VNode<ET>>The remaining nodes after the split
split_penalty: Option<i32>The penalty at the split (currently not properly implemented)
Auto Trait Implementations§
impl<ET> Freeze for SplitResult<ET>
impl<ET> !RefUnwindSafe for SplitResult<ET>
impl<ET> Send for SplitResult<ET>where
<ET as EngineTypes>::Dim: Send,
<ET as EngineTypes>::CustomNode: Send,
<<ET as EngineTypes>::File as File>::SourceRefID: Send,
<ET as EngineTypes>::Char: Send,
<ET as EngineTypes>::Font: Send,
<ET as EngineTypes>::MuDim: Send,
ET: Send,
impl<ET> !Sync for SplitResult<ET>
impl<ET> Unpin for SplitResult<ET>where
<ET as EngineTypes>::Dim: Unpin,
<ET as EngineTypes>::CustomNode: Unpin,
<<ET as EngineTypes>::File as File>::SourceRefID: Unpin,
<ET as EngineTypes>::Token: Unpin,
impl<ET> UnsafeUnpin for SplitResult<ET>
impl<ET> UnwindSafe for SplitResult<ET>where
<ET as EngineTypes>::Dim: UnwindSafe,
<ET as EngineTypes>::CustomNode: UnwindSafe,
<<ET as EngineTypes>::File as File>::SourceRefID: UnwindSafe,
<ET as EngineTypes>::Token: UnwindSafe,
<ET as EngineTypes>::Char: UnwindSafe,
<ET as EngineTypes>::Font: UnwindSafe,
<ET as EngineTypes>::MuDim: UnwindSafe,
ET: UnwindSafe,
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
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