pub struct Surface2Data {
pub transform: Transform2,
pub is_normal_flipped: bool,
}Fields§
§transform: Transform2Local-to-world transform.
is_normal_flipped: boolFlips normal.
Implementations§
Source§impl Surface2Data
impl Surface2Data
pub fn new( transform: Option<Transform2>, is_normal_flipped: Option<bool>, ) -> Surface2Data
Auto Trait Implementations§
impl Freeze for Surface2Data
impl RefUnwindSafe for Surface2Data
impl Send for Surface2Data
impl Sync for Surface2Data
impl Unpin for Surface2Data
impl UnwindSafe for Surface2Data
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more