#[non_exhaustive]pub struct TextPartStyle(pub Style);Expand description
The style of a component’s part that shows text (a select’s rows, a
one-time code’s cells): a Style whose TypeScript type takes the text
styles too (StyleProp<TextStyle>: color, fontSize, textAlign),
which the part’s texts inherit. A part that edits text takes an
InputPartStyle. Its setter takes
the typed styles’ closure, as a Style’s does; the part applies it with
Element::inline_style (it is Into<Style>).
Tuple Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.0: StyleTrait Implementations§
Source§impl Clone for TextPartStyle
impl Clone for TextPartStyle
Source§impl Debug for TextPartStyle
impl Debug for TextPartStyle
Source§impl Default for TextPartStyle
impl Default for TextPartStyle
Source§impl From<Style> for TextPartStyle
impl From<Style> for TextPartStyle
Source§impl From<StyleRefinement> for TextPartStyle
impl From<StyleRefinement> for TextPartStyle
Source§fn from(style: StyleRefinement) -> Self
fn from(style: StyleRefinement) -> Self
Converts to this type from the input type.
Source§impl From<TextPartStyle> for Style
impl From<TextPartStyle> for Style
Source§fn from(style: TextPartStyle) -> Self
fn from(style: TextPartStyle) -> Self
Converts to this type from the input type.
Source§impl JsValue for TextPartStyle
impl JsValue for TextPartStyle
Source§impl PartialEq for TextPartStyle
impl PartialEq for TextPartStyle
impl StructuralPartialEq for TextPartStyle
Auto Trait Implementations§
impl !RefUnwindSafe for TextPartStyle
impl !Send for TextPartStyle
impl !Sync for TextPartStyle
impl !UnwindSafe for TextPartStyle
impl Forget for TextPartStyle
impl Freeze for TextPartStylewhere
*const RcInner<StylePatch> is !null: Freeze,
PhantomData<RcInner<StylePatch>>: Freeze,
*const RcInner<Vec<(Variant, Declaration)>> is !null: Freeze,
PhantomData<RcInner<Vec<(Variant, Declaration)>>>: Freeze,
*const u8 is !null: Freeze,
PhantomData<&'static str>: Freeze,
PhantomData<Rc<dyn Fn(&mut StyleRefinement)>>: Freeze,
impl Move for TextPartStyle
impl Unpin for TextPartStyle
impl UnsafeUnpin for TextPartStylewhere
*const RcInner<StylePatch> is !null: UnsafeUnpin,
PhantomData<RcInner<StylePatch>>: UnsafeUnpin,
*const RcInner<Vec<(Variant, Declaration)>> is !null: UnsafeUnpin,
PhantomData<RcInner<Vec<(Variant, Declaration)>>>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<&'static str>: UnsafeUnpin,
PhantomData<Rc<dyn Fn(&mut StyleRefinement)>>: UnsafeUnpin,
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> CallbackArgs for Twhere
T: Ret,
impl<T> CallbackArgs for Twhere
T: Ret,
Source§fn ts_params(types: &mut TsTypes, names: &[&str]) -> String
fn ts_params(types: &mut TsTypes, names: &[&str]) -> String
Its TypeScript parameters, named
names (name: string, amount: number), or without names value for one and a, b, … for
several.Source§fn into_js_args<'a>(
self,
host: &'a dyn JsHost,
) -> Result<Vec<JsOwned<'a>>, PropError>
fn into_js_args<'a>( self, host: &'a dyn JsHost, ) -> Result<Vec<JsOwned<'a>>, PropError>
The arguments as JS values.