enum LineOp<'a> {
PushIndent,
PopIndent,
PushStyles(&'a Styles),
PopStyles(&'a Styles),
PushAnchor {
is_def: bool,
anchor: &'a str,
},
PopAnchor {
is_def: bool,
anchor: &'a str,
},
EmptyAnchor {
is_def: bool,
anchor: &'a str,
},
AppendToLine(&'a str),
StartNewLine,
BreakIfWithinLine(Break),
}
Expand description
Variants§
PushIndent
PopIndent
PushStyles(&'a Styles)
PopStyles(&'a Styles)
PushAnchor
PopAnchor
EmptyAnchor
AppendToLine(&'a str)
StartNewLine
BreakIfWithinLine(Break)
Implementations§
source§impl<'a> LineOp<'a>
impl<'a> LineOp<'a>
sourcefn interpret(
line_ops: impl InternalIterator<Item = LineOp<'a>>
) -> impl InternalIterator<Item = TextOp<'a>>
fn interpret( line_ops: impl InternalIterator<Item = LineOp<'a>> ) -> impl InternalIterator<Item = TextOp<'a>>
fn interpret_try_for_each_helper<T>( line_ops: impl InternalIterator<Item = LineOp<'a>>, each_text_op: impl FnMut(TextOp<'a>) -> ControlFlow<T> ) -> ControlFlow<T>
Trait Implementations§
Auto Trait Implementations§
impl<'a> RefUnwindSafe for LineOp<'a>
impl<'a> Send for LineOp<'a>
impl<'a> Sync for LineOp<'a>
impl<'a> Unpin for LineOp<'a>
impl<'a> UnwindSafe for LineOp<'a>
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