pub enum Alignment {
LeftAligned,
RightAligned,
Center,
Justify,
}
Expand description
Alignement of a paragraph (left, right, center, justify)
Variants§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Alignment
impl<'de> Deserialize<'de> for Alignment
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<&ControlWord<'_>> for Alignment
impl From<&ControlWord<'_>> for Alignment
Source§fn from(cw: &ControlWord<'_>) -> Self
fn from(cw: &ControlWord<'_>) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for Alignmentwhere
Self: DeserializeOwned,
impl FromWasmAbi for Alignmentwhere
Self: DeserializeOwned,
Source§impl IntoWasmAbi for Alignmentwhere
Self: Serialize,
impl IntoWasmAbi for Alignmentwhere
Self: Serialize,
Source§impl OptionFromWasmAbi for Alignmentwhere
Self: DeserializeOwned,
impl OptionFromWasmAbi for Alignmentwhere
Self: DeserializeOwned,
Source§impl OptionIntoWasmAbi for Alignmentwhere
Self: Serialize,
impl OptionIntoWasmAbi for Alignmentwhere
Self: Serialize,
Source§impl Tsify for Alignment
impl Tsify for Alignment
impl Copy for Alignment
impl StructuralPartialEq for Alignment
Auto Trait Implementations§
impl Freeze for Alignment
impl RefUnwindSafe for Alignment
impl Send for Alignment
impl Sync for Alignment
impl Unpin for Alignment
impl UnwindSafe for Alignment
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
.