pub struct Props {
pub code: String,
pub language: String,
}
Code that you want to highlight
Language of that code (rust, javascript, etc…)
Performs copy-assignment from source
. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
type Builder = PropsBuilder<PropsBuilderStep_missing_required_prop_code>
Builder that will be used to construct properties
Entrypoint for building properties
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
Convert self
to an optional value of a Properties
struct.
Convert self
to a value of a Properties
struct.
Convert self
to a value of a Properties
struct.
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.
impl<T> Any for T where
T: Any,
impl<T> CloneAny for T where
T: Any + Clone,