pub struct AnsiProps<S: Clone + PartialEq> {
pub class: Classes,
pub text: S,
pub no_default_style: bool,
}
Expand description
Props that can be passed to the AnsiRenderer
component.
Fields§
§class: Classes
Classes to add to the root element. (Optional)
text: S
Content to render. (Required)
no_default_style: bool
Whether to disable the inline style applied to the root component. (Optional)
Trait Implementations§
source§impl<S: PartialEq + Clone + PartialEq> PartialEq<AnsiProps<S>> for AnsiProps<S>
impl<S: PartialEq + Clone + PartialEq> PartialEq<AnsiProps<S>> for AnsiProps<S>
impl<S: Clone + PartialEq> StructuralPartialEq for AnsiProps<S>
Auto Trait Implementations§
impl<S> RefUnwindSafe for AnsiProps<S>where S: RefUnwindSafe,
impl<S> Send for AnsiProps<S>where S: Send,
impl<S> Sync for AnsiProps<S>where S: Sync,
impl<S> Unpin for AnsiProps<S>where S: Unpin,
impl<S> UnwindSafe for AnsiProps<S>where S: UnwindSafe,
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> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoPropValue<Option<T>> for T
impl<T> IntoPropValue<Option<T>> for T
source§fn into_prop_value(self) -> Option<T>
fn into_prop_value(self) -> Option<T>
Convert
self
to a value of a Properties
struct.source§impl<T> IntoPropValue<T> for T
impl<T> IntoPropValue<T> for T
source§fn into_prop_value(self) -> T
fn into_prop_value(self) -> T
Convert
self
to a value of a Properties
struct.