pub enum LogicalItem {
Text {
source: ContentIndex,
text: String,
style: Arc<StyleProperties>,
marker_position_outside: Option<bool>,
source_node_id: Option<NodeId>,
},
CombinedText {
source: ContentIndex,
text: String,
style: Arc<StyleProperties>,
},
Ruby {
source: ContentIndex,
base_text: String,
ruby_text: String,
style: Arc<StyleProperties>,
},
Object {
source: ContentIndex,
content: InlineContent,
},
Tab {
source: ContentIndex,
style: Arc<StyleProperties>,
},
Break {
source: ContentIndex,
break_info: InlineBreak,
},
}Variants§
Text
Fields
§
source: ContentIndexA stable ID pointing back to the original source character.
§
style: Arc<StyleProperties>CombinedText
Tate-chu-yoko: Run of text to be laid out horizontally within a vertical context.
Ruby
Object
Fields
§
source: ContentIndexA stable ID pointing back to the original source object.
§
content: InlineContentThe original non-text object.
Tab
Break
Trait Implementations§
Source§impl Clone for LogicalItem
impl Clone for LogicalItem
Source§fn clone(&self) -> LogicalItem
fn clone(&self) -> LogicalItem
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 moreSource§impl Debug for LogicalItem
impl Debug for LogicalItem
Auto Trait Implementations§
impl Freeze for LogicalItem
impl RefUnwindSafe for LogicalItem
impl Send for LogicalItem
impl Sync for LogicalItem
impl Unpin for LogicalItem
impl UnwindSafe for LogicalItem
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