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
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>
impl<T> ErasedDestructor for Twhere
T: 'static,
impl<T> MaybeSendSync for T
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 16 bytes