pub struct CodeProps {
pub text: WidgetText,
pub variant: CodeVariant,
pub size: Option<f32>,
pub weight: Option<TextWeight>,
pub color: Option<TypographyColor>,
pub high_contrast: bool,
pub truncate: bool,
pub wrap: Option<TextWrap>,
}Fields§
§text: WidgetText§variant: CodeVariant§size: Option<f32>§weight: Option<TextWeight>§color: Option<TypographyColor>§high_contrast: bool§truncate: bool§wrap: Option<TextWrap>Implementations§
Source§impl CodeProps
impl CodeProps
pub fn new(text: impl Into<WidgetText>) -> Self
pub fn variant(self, variant: CodeVariant) -> Self
pub fn size(self, size: f32) -> Self
pub fn weight(self, weight: TextWeight) -> Self
pub fn color(self, color: TypographyColor) -> Self
pub fn high_contrast(self, high_contrast: bool) -> Self
pub fn truncate(self, truncate: bool) -> Self
pub fn wrap(self, wrap: TextWrap) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CodeProps
impl RefUnwindSafe for CodeProps
impl Send for CodeProps
impl Sync for CodeProps
impl Unpin for CodeProps
impl UnsafeUnpin for CodeProps
impl UnwindSafe for CodeProps
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