Enum webrender_api::display_item::Rotation
source · pub enum Rotation {
Degree0,
Degree90,
Degree180,
Degree270,
}
Variants§
Implementations§
source§impl Rotation
impl Rotation
pub fn to_matrix(&self, size: LayoutSize) -> LayoutTransform
Trait Implementations§
source§impl<'de> Deserialize<'de> for Rotation
impl<'de> Deserialize<'de> for Rotation
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 PartialEq for Rotation
impl PartialEq for Rotation
impl Copy for Rotation
impl StructuralPartialEq for Rotation
Auto Trait Implementations§
impl Freeze for Rotation
impl RefUnwindSafe for Rotation
impl Send for Rotation
impl Sync for Rotation
impl Unpin for Rotation
impl UnwindSafe for Rotation
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