Struct css_in_rust_next::style::Style
source · [−]pub struct Style { /* private fields */ }
Implementations
sourceimpl Style
impl Style
The style represents all the CSS belonging to a single component.
sourcepub fn create<I1: Into<String>, I2: Into<String>>(
class_name: I1,
css: I2
) -> Result<Style, String>
pub fn create<I1: Into<String>, I2: Into<String>>(
class_name: I1,
css: I2
) -> Result<Style, String>
Creates a new style and, stores it into the registry and returns the newly created style.
This function will already mount the style to the HTML head for the browser to use.
pub fn get_class_name(self) -> String
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Style
impl Send for Style
impl Sync for Style
impl Unpin for Style
impl UnwindSafe for Style
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> IntoPropValue<Option<T>> for T
impl<T> IntoPropValue<Option<T>> for T
sourcefn into_prop_value(self) -> Option<T>
fn into_prop_value(self) -> Option<T>
Convert self
to a value of a Properties
struct.
sourceimpl<T> IntoPropValue<T> for T
impl<T> IntoPropValue<T> for T
sourcefn into_prop_value(self) -> T
fn into_prop_value(self) -> T
Convert self
to a value of a Properties
struct.
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more