Struct icu_capi::bidi::ffi::ICU4XBidiParagraph
source · pub struct ICU4XBidiParagraph<'info>(pub Paragraph<'info, 'info>);
Expand description
Bidi information for a single processed paragraph
Tuple Fields§
§0: Paragraph<'info, 'info>
Implementations§
source§impl<'info> ICU4XBidiParagraph<'info>
impl<'info> ICU4XBidiParagraph<'info>
sourcepub fn set_paragraph_in_text(&mut self, n: usize) -> Result<(), ICU4XError>
pub fn set_paragraph_in_text(&mut self, n: usize) -> Result<(), ICU4XError>
Given a paragraph index n
within the surrounding text, this sets this
object to the paragraph at that index. Returns ICU4XError::OutOfBoundsError
when out of bounds.
This is equivalent to calling paragraph_at()
on ICU4XBidiInfo
but doesn’t
create a new object
sourcepub fn direction(&self) -> ICU4XBidiDirection
pub fn direction(&self) -> ICU4XBidiDirection
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
sourcepub fn reorder_line(
&self,
range_start: usize,
range_end: usize,
out: &mut DiplomatWriteable,
) -> Result<(), ICU4XError>
pub fn reorder_line( &self, range_start: usize, range_end: usize, out: &mut DiplomatWriteable, ) -> Result<(), ICU4XError>
Reorder a line based on display order. The ranges are specified relative to the source text and must be contained within this paragraph’s range.
Auto Trait Implementations§
impl<'info> Freeze for ICU4XBidiParagraph<'info>
impl<'info> RefUnwindSafe for ICU4XBidiParagraph<'info>
impl<'info> Send for ICU4XBidiParagraph<'info>
impl<'info> Sync for ICU4XBidiParagraph<'info>
impl<'info> Unpin for ICU4XBidiParagraph<'info>
impl<'info> UnwindSafe for ICU4XBidiParagraph<'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> Filterable for T
impl<T> Filterable for T
source§fn filterable(
self,
filter_name: &'static str,
) -> RequestFilterDataProvider<T, fn(_: DataRequest<'_>) -> bool>
fn filterable( self, filter_name: &'static str, ) -> RequestFilterDataProvider<T, fn(_: DataRequest<'_>) -> bool>
Creates a filterable data provider with the given name for debugging. 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