pub struct StyleOptions {
pub slant: Option<Slant>,
pub weight: Option<u16>,
pub width: Option<Width>,
}
Expand description
Local mirror of fidl_fuchsia_fonts::Style2
, for use in JSON serialization.
We can’t just use a Serde remote type for Style2
here because there are lots of other required
traits that are not derived for FIDL tables.
Ord
is derived for use with the manifest generator’s TryMergeGroups
trait. The ordering is
by necessity arbitrary, comparing each field in sequence, recursively comparing enum values and
numbers.
Fields§
§slant: Option<Slant>
§weight: Option<u16>
§width: Option<Width>
Trait Implementations§
Source§impl Clone for StyleOptions
impl Clone for StyleOptions
Source§fn clone(&self) -> StyleOptions
fn clone(&self) -> StyleOptions
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 StyleOptions
impl Debug for StyleOptions
Source§impl Default for StyleOptions
impl Default for StyleOptions
Source§fn default() -> StyleOptions
fn default() -> StyleOptions
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for StyleOptions
impl<'de> Deserialize<'de> for StyleOptions
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<Style2> for StyleOptions
impl From<Style2> for StyleOptions
Source§impl From<StyleOptions> for Style2
impl From<StyleOptions> for Style2
Source§fn from(style_options: StyleOptions) -> Self
fn from(style_options: StyleOptions) -> Self
Converts to this type from the input type.
Source§impl Hash for StyleOptions
impl Hash for StyleOptions
Source§impl Ord for StyleOptions
impl Ord for StyleOptions
Source§fn cmp(&self, other: &StyleOptions) -> Ordering
fn cmp(&self, other: &StyleOptions) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for StyleOptions
impl PartialEq for StyleOptions
Source§impl PartialOrd for StyleOptions
impl PartialOrd for StyleOptions
Source§impl Serialize for StyleOptions
impl Serialize for StyleOptions
impl Eq for StyleOptions
impl StructuralPartialEq for StyleOptions
Auto Trait Implementations§
impl Freeze for StyleOptions
impl RefUnwindSafe for StyleOptions
impl Send for StyleOptions
impl Sync for StyleOptions
impl Unpin for StyleOptions
impl UnwindSafe for StyleOptions
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)