pub struct InlineTextBox {
pub bounding_box: Rect,
pub start_character_index: i64,
pub num_characters: i64,
}
Expand description
Details of post layout rendered text positions. The exact layout should not be regarded as stable and may change between versions. InlineTextBox
Fields§
§bounding_box: Rect
The bounding box in document coordinates. Note that scroll offset of the document is ignored.
start_character_index: i64
The starting index in characters, for this post layout textbox substring. Characters that would be represented as a surrogate pair in UTF-16 have length 2.
num_characters: i64
The number of characters in this post layout textbox substring. Characters that would be represented as a surrogate pair in UTF-16 have length 2.
Implementations§
Source§impl InlineTextBox
impl InlineTextBox
Source§impl InlineTextBox
impl InlineTextBox
pub fn builder() -> InlineTextBoxBuilder
Source§impl InlineTextBox
impl InlineTextBox
pub const IDENTIFIER: &'static str = "DOMSnapshot.InlineTextBox"
Trait Implementations§
Source§impl Clone for InlineTextBox
impl Clone for InlineTextBox
Source§fn clone(&self) -> InlineTextBox
fn clone(&self) -> InlineTextBox
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 moreSource§impl Debug for InlineTextBox
impl Debug for InlineTextBox
Source§impl<'de> Deserialize<'de> for InlineTextBox
impl<'de> Deserialize<'de> for InlineTextBox
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<InlineTextBox, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<InlineTextBox, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for InlineTextBox
impl PartialEq for InlineTextBox
Source§impl Serialize for InlineTextBox
impl Serialize for InlineTextBox
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for InlineTextBox
Auto Trait Implementations§
impl Freeze for InlineTextBox
impl RefUnwindSafe for InlineTextBox
impl Send for InlineTextBox
impl Sync for InlineTextBox
impl Unpin for InlineTextBox
impl UnwindSafe for InlineTextBox
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> 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 more