Skip to main content

LayoutParams

Trait LayoutParams 

Source
pub trait LayoutParams {
    // Required methods
    fn to_owned(self) -> OwnedLayoutParams;
    fn text(&self) -> &str;
    fn spans(&self) -> &[Span];
    fn options(&self) -> LayoutOptions;
}

Required Methods§

Source

fn to_owned(self) -> OwnedLayoutParams

Source

fn text(&self) -> &str

Source

fn spans(&self) -> &[Span]

Source

fn options(&self) -> LayoutOptions

Trait Implementations§

Source§

impl<'a> Borrow<dyn LayoutParams + 'a> for OwnedLayoutParams

Source§

fn borrow(&self) -> &(dyn LayoutParams + 'a)

Immutably borrows from an owned value. Read more
Source§

impl<'a> Borrow<dyn LayoutParams + 'a> for BorrowedLayoutParams<'a>

Source§

fn borrow(&self) -> &(dyn LayoutParams + 'a)

Immutably borrows from an owned value. Read more
Source§

impl Eq for dyn LayoutParams + '_

Source§

impl Hash for dyn LayoutParams + '_

Source§

fn hash<H>(&self, hasher: &mut H)
where H: Hasher,

Feeds this value into the given Hasher. Read more
Source§

impl PartialEq for dyn LayoutParams + '_

Source§

fn eq(&self, other: &dyn LayoutParams) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§