pub struct TextParentData {
pub span: Option<Rc<dyn PlaceholderSpan>>,
/* private fields */
}Expand description
Parent data used by RenderParagraph and RenderEditable to annotate inline contents
(such as WidgetSpans) with.
Fields§
§span: Option<Rc<dyn PlaceholderSpan>>The PlaceholderSpan associated with this render child.
This field is usually set by a ParentDataWidget, and is typically not None when
perform_layout is called.
Implementations§
Trait Implementations§
Source§impl ContainerParentDataMixin for TextParentData
impl ContainerParentDataMixin for TextParentData
Source§type ChildType = AnyRenderBox
type ChildType = AnyRenderBox
The type-erased handle of a child in the list.
AnyRenderBox for a box container.Source§fn container_parent_data(&self) -> &ContainerParentData<AnyRenderBox>
fn container_parent_data(&self) -> &ContainerParentData<AnyRenderBox>
Mixin field access.
Source§fn container_parent_data_mut(
&mut self,
) -> &mut ContainerParentData<AnyRenderBox>
fn container_parent_data_mut( &mut self, ) -> &mut ContainerParentData<AnyRenderBox>
Source§fn previous_sibling(&self) -> Option<Self::ChildType>
fn previous_sibling(&self) -> Option<Self::ChildType>
The previous sibling in the parent’s child list.
Source§fn set_previous_sibling(&mut self, value: Option<Self::ChildType>)
fn set_previous_sibling(&mut self, value: Option<Self::ChildType>)
Sets
previous_sibling.Source§fn next_sibling(&self) -> Option<Self::ChildType>
fn next_sibling(&self) -> Option<Self::ChildType>
The next sibling in the parent’s child list.
Source§fn set_next_sibling(&mut self, value: Option<Self::ChildType>)
fn set_next_sibling(&mut self, value: Option<Self::ChildType>)
Sets
next_sibling.Source§impl Debug for TextParentData
impl Debug for TextParentData
Source§impl Default for TextParentData
impl Default for TextParentData
Source§impl Display for TextParentData
impl Display for TextParentData
Auto Trait Implementations§
impl !RefUnwindSafe for TextParentData
impl !Send for TextParentData
impl !Sync for TextParentData
impl !UnwindSafe for TextParentData
impl Freeze for TextParentData
impl Unpin for TextParentData
impl UnsafeUnpin for TextParentData
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