pub struct RichTextBlock { /* private fields */ }Implementations§
Source§impl RichTextBlock
impl RichTextBlock
pub fn new() -> Self
pub fn paragraphs(self, value: impl Into<Option<RichText>>) -> Self
pub fn font_size(self, value: impl Into<Option<f64>>) -> Self
pub fn is_text_selection_enabled(self, value: impl Into<Option<bool>>) -> Self
pub fn text_wrapping(self, value: impl Into<Option<TextWrapping>>) -> Self
Trait Implementations§
Source§impl Clone for RichTextBlock
impl Clone for RichTextBlock
Source§fn clone(&self) -> RichTextBlock
fn clone(&self) -> RichTextBlock
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RichTextBlock
impl Debug for RichTextBlock
Source§impl Default for RichTextBlock
impl Default for RichTextBlock
Source§fn default() -> RichTextBlock
fn default() -> RichTextBlock
Returns the “default value” for a type. Read more
Source§impl From<RichTextBlock> for View
impl From<RichTextBlock> for View
Source§fn from(value: RichTextBlock) -> Self
fn from(value: RichTextBlock) -> Self
Converts to this type from the input type.
Source§impl LayoutControl for RichTextBlock
impl LayoutControl for RichTextBlock
fn width(self, value: impl Into<Option<f64>>) -> Selfwhere
Self: Sized,
fn height(self, value: impl Into<Option<f64>>) -> Selfwhere
Self: Sized,
fn min_width(self, value: impl Into<Option<f64>>) -> Selfwhere
Self: Sized,
fn max_width(self, value: impl Into<Option<f64>>) -> Selfwhere
Self: Sized,
fn min_height(self, value: impl Into<Option<f64>>) -> Selfwhere
Self: Sized,
fn max_height(self, value: impl Into<Option<f64>>) -> Selfwhere
Self: Sized,
fn opacity(self, value: impl Into<Option<f64>>) -> Selfwhere
Self: Sized,
fn horizontal_alignment(
self,
value: impl Into<Option<HorizontalAlignment>>,
) -> Selfwhere
Self: Sized,
fn vertical_alignment(self, value: impl Into<Option<VerticalAlignment>>) -> Selfwhere
Self: Sized,
fn margin(self, value: impl Into<Thickness>) -> Selfwhere
Self: Sized,
fn margin_optional<T>(self, value: Option<T>) -> Self
fn exit_transition(self, transition: ExitTransition) -> Selfwhere
Self: Sized,
Source§impl PartialEq for RichTextBlock
impl PartialEq for RichTextBlock
impl StructuralPartialEq for RichTextBlock
Auto Trait Implementations§
impl !Send for RichTextBlock
impl !Sync for RichTextBlock
impl Freeze for RichTextBlock
impl RefUnwindSafe for RichTextBlock
impl Unpin for RichTextBlock
impl UnsafeUnpin for RichTextBlock
impl UnwindSafe for RichTextBlock
Blanket Implementations§
Source§impl<T> AutomationExt for Twhere
T: LayoutControl,
impl<T> AutomationExt for Twhere
T: LayoutControl,
fn automation_name(self, value: impl Into<String>) -> Self
fn automation_id(self, value: impl Into<String>) -> Self
fn automation_heading_level(self, value: AutomationHeadingLevel) -> Self
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