pub struct StyleBlock {
pub painter: Painter,
pub paragraph: Paragraph,
pub text: String,
}
Fields§
§painter: Painter
§paragraph: Paragraph
§text: String
Trait Implementations§
Source§impl Clone for StyleBlock
impl Clone for StyleBlock
Source§fn clone(&self) -> StyleBlock
fn clone(&self) -> StyleBlock
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for StyleBlock
impl Debug for StyleBlock
Source§impl Default for StyleBlock
impl Default for StyleBlock
Source§fn default() -> StyleBlock
fn default() -> StyleBlock
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for StyleBlock
impl<'de> Deserialize<'de> for StyleBlock
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<StyleBlock> for JsValue
impl From<StyleBlock> for JsValue
Source§fn from(value: StyleBlock) -> Self
fn from(value: StyleBlock) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for StyleBlock
impl FromWasmAbi for StyleBlock
Source§impl IntoWasmAbi for StyleBlock
impl IntoWasmAbi for StyleBlock
Source§impl LongRefFromWasmAbi for StyleBlock
impl LongRefFromWasmAbi for StyleBlock
Source§impl OptionFromWasmAbi for StyleBlock
impl OptionFromWasmAbi for StyleBlock
Source§impl OptionIntoWasmAbi for StyleBlock
impl OptionIntoWasmAbi for StyleBlock
Source§impl PartialEq for StyleBlock
impl PartialEq for StyleBlock
Source§impl RefFromWasmAbi for StyleBlock
impl RefFromWasmAbi for StyleBlock
Source§type Anchor = RcRef<StyleBlock>
type Anchor = RcRef<StyleBlock>
The type that holds the reference to
Self
for the duration of the
invocation of the function that has an &Self
parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous.Source§impl RefMutFromWasmAbi for StyleBlock
impl RefMutFromWasmAbi for StyleBlock
Source§impl Serialize for StyleBlock
impl Serialize for StyleBlock
Source§impl TryFromJsValue for StyleBlock
impl TryFromJsValue for StyleBlock
Source§impl VectorFromWasmAbi for StyleBlock
impl VectorFromWasmAbi for StyleBlock
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[StyleBlock]>
Source§impl VectorIntoJsValue for StyleBlock
impl VectorIntoJsValue for StyleBlock
fn vector_into_jsvalue(vector: Box<[StyleBlock]>) -> JsValue
Source§impl VectorIntoWasmAbi for StyleBlock
impl VectorIntoWasmAbi for StyleBlock
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[StyleBlock]>) -> Self::Abi
Source§impl WasmDescribeVector for StyleBlock
impl WasmDescribeVector for StyleBlock
impl StructuralPartialEq for StyleBlock
impl SupportsConstructor for StyleBlock
impl SupportsInstanceProperty for StyleBlock
impl SupportsStaticProperty for StyleBlock
Auto Trait Implementations§
impl Freeze for StyleBlock
impl RefUnwindSafe for StyleBlock
impl Send for StyleBlock
impl Sync for StyleBlock
impl Unpin for StyleBlock
impl UnwindSafe for StyleBlock
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::Abi
Source§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi
, except that it may throw and never
return in the case of Err
.