Struct windows::UI::Text::FontWeights
pub struct FontWeights(/* private fields */);
Implementations§
§impl FontWeights
impl FontWeights
pub fn Black() -> Result<FontWeight>
pub fn Bold() -> Result<FontWeight>
pub fn ExtraBlack() -> Result<FontWeight>
pub fn ExtraBold() -> Result<FontWeight>
pub fn ExtraLight() -> Result<FontWeight>
pub fn Light() -> Result<FontWeight>
pub fn Medium() -> Result<FontWeight>
pub fn Normal() -> Result<FontWeight>
pub fn SemiBold() -> Result<FontWeight>
pub fn SemiLight() -> Result<FontWeight>
pub fn Thin() -> Result<FontWeight>
Trait Implementations§
§impl Clone for FontWeights
impl Clone for FontWeights
§fn clone(&self) -> FontWeights
fn clone(&self) -> FontWeights
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 more§impl Debug for FontWeights
impl Debug for FontWeights
§impl From<&FontWeights> for &IInspectable
impl From<&FontWeights> for &IInspectable
§fn from(value: &FontWeights) -> Self
fn from(value: &FontWeights) -> Self
Converts to this type from the input type.
§impl From<&FontWeights> for &IUnknown
impl From<&FontWeights> for &IUnknown
§fn from(value: &FontWeights) -> Self
fn from(value: &FontWeights) -> Self
Converts to this type from the input type.
§impl From<FontWeights> for IInspectable
impl From<FontWeights> for IInspectable
§fn from(value: FontWeights) -> Self
fn from(value: FontWeights) -> Self
Converts to this type from the input type.
§impl From<FontWeights> for IUnknown
impl From<FontWeights> for IUnknown
§fn from(value: FontWeights) -> Self
fn from(value: FontWeights) -> Self
Converts to this type from the input type.
§impl Interface for FontWeights
impl Interface for FontWeights
§fn as_raw(&self) -> *mut c_void
fn as_raw(&self) -> *mut c_void
Returns the raw COM interface pointer. The resulting pointer continues to be owned by the
Interface
implementation.§fn into_raw(self) -> *mut c_void
fn into_raw(self) -> *mut c_void
Returns the raw COM interface pointer and releases ownership. It the caller’s responsibility to release the COM interface pointer.
§fn cast<T>(&self) -> Result<T, Error>where
T: Interface,
fn cast<T>(&self) -> Result<T, Error>where
T: Interface,
Attempts to cast the current interface to another interface using
QueryInterface
. Read more§impl PartialEq for FontWeights
impl PartialEq for FontWeights
§fn eq(&self, other: &FontWeights) -> bool
fn eq(&self, other: &FontWeights) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for FontWeights
impl Send for FontWeights
impl StructuralPartialEq for FontWeights
impl Sync for FontWeights
Auto Trait Implementations§
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