Struct icu_capi::bidi::ffi::BidiParagraph
source · pub struct BidiParagraph<'info>(pub Paragraph<'info, 'info>);
Expand description
Bidi information for a single processed paragraph
Tuple Fields§
§0: Paragraph<'info, 'info>
Implementations§
source§impl<'info> BidiParagraph<'info>
impl<'info> BidiParagraph<'info>
sourcepub fn set_paragraph_in_text(&mut self, n: usize) -> bool
pub fn set_paragraph_in_text(&mut self, n: usize) -> bool
Given a paragraph index n
within the surrounding text, this sets this
object to the paragraph at that index. Returns nothing when out of bounds.
This is equivalent to calling paragraph_at()
on BidiInfo
but doesn’t
create a new object
sourcepub fn direction(&self) -> BidiDirection
pub fn direction(&self) -> BidiDirection
The primary direction of this paragraph
sourcepub fn range_start(&self) -> usize
pub fn range_start(&self) -> usize
The start index of this paragraph within the source text
Auto Trait Implementations§
impl<'info> Freeze for BidiParagraph<'info>
impl<'info> RefUnwindSafe for BidiParagraph<'info>
impl<'info> Send for BidiParagraph<'info>
impl<'info> Sync for BidiParagraph<'info>
impl<'info> Unpin for BidiParagraph<'info>
impl<'info> UnwindSafe for BidiParagraph<'info>
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> 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