pub struct VisualItem {
pub logical_source: LogicalItem,
pub bidi_level: BidiLevel,
pub script: Script,
pub text: String,
}Fields§
§logical_source: LogicalItemA reference to the logical item this visual item originated from. A single LogicalItem can be split into multiple VisualItems.
bidi_level: BidiLevelThe Bidi embedding level for this item.
script: ScriptThe script detected for this run, crucial for shaping.
text: StringThe text content for this specific visual run.
Trait Implementations§
Source§impl Clone for VisualItem
impl Clone for VisualItem
Source§fn clone(&self) -> VisualItem
fn clone(&self) -> VisualItem
Returns a duplicate 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 VisualItem
impl RefUnwindSafe for VisualItem
impl Send for VisualItem
impl Sync for VisualItem
impl Unpin for VisualItem
impl UnwindSafe for VisualItem
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> 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