Struct layout_2020::query::RenderedTextCollectionState
source · struct RenderedTextCollectionState {
first_table_row: bool,
first_table_cell: bool,
within_table: bool,
may_start_with_whitespace: bool,
did_truncate_trailing_white_space: bool,
within_table_content: bool,
}
Fields§
§first_table_row: bool
Used to make sure we don’t add a \n
before the first row
first_table_cell: bool
Used to make sure we don’t add a \t
before the first column
within_table: bool
Keeps track of whether we’re inside a table, since there are special rules like ommiting everything that’s not inside a TableCell/TableCaption
may_start_with_whitespace: bool
Determines whether we truncate leading whitespaces for normal nodes or not
did_truncate_trailing_white_space: bool
Is set whenever we truncated a white space char, used to prepend a single space before the next element, that way we truncate trailing white space without having to look ahead
within_table_content: bool
Is set to true when we’re rendering the children of TableCell/TableCaption elements, that way we render everything inside those as normal, while omitting everything that’s in a Table but NOT in a Cell/Caption
Trait Implementations§
source§impl Clone for RenderedTextCollectionState
impl Clone for RenderedTextCollectionState
source§fn clone(&self) -> RenderedTextCollectionState
fn clone(&self) -> RenderedTextCollectionState
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for RenderedTextCollectionState
impl RefUnwindSafe for RenderedTextCollectionState
impl Send for RenderedTextCollectionState
impl Sync for RenderedTextCollectionState
impl Unpin for RenderedTextCollectionState
impl UnwindSafe for RenderedTextCollectionState
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
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>
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 moresource§impl<T> MaybeBoxed<Box<T>> for T
impl<T> MaybeBoxed<Box<T>> for T
source§fn maybe_boxed(self) -> Box<T>
fn maybe_boxed(self) -> Box<T>
Convert
source§impl<T> MaybeBoxed<T> for T
impl<T> MaybeBoxed<T> for T
source§fn maybe_boxed(self) -> T
fn maybe_boxed(self) -> T
Convert
source§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian()
.