#[non_exhaustive]#[repr(u8)]pub enum BorrowedOpenGLTextureOrigin {
TopLeft,
BottomLeft,
}
Expand description
This enum describes the origin to use when rendering a borrowed OpenGL texture.
Use this with BorrowedOpenGLTextureBuilder::origin
.
Variants (Non-exhaustive)ยง
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
TopLeft
The top-left of the texture is the top-left of the texture drawn on the screen.
BottomLeft
The bottom-left of the texture is the top-left of the texture draw on the screen, flipping it vertically.
Trait Implementationsยง
ยงimpl Clone for BorrowedOpenGLTextureOrigin
impl Clone for BorrowedOpenGLTextureOrigin
ยงfn clone(&self) -> BorrowedOpenGLTextureOrigin
fn clone(&self) -> BorrowedOpenGLTextureOrigin
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 BorrowedOpenGLTextureOrigin
impl Debug for BorrowedOpenGLTextureOrigin
ยงimpl Default for BorrowedOpenGLTextureOrigin
impl Default for BorrowedOpenGLTextureOrigin
ยงfn default() -> BorrowedOpenGLTextureOrigin
fn default() -> BorrowedOpenGLTextureOrigin
Returns the โdefault valueโ for a type. Read more
ยงimpl PartialEq<BorrowedOpenGLTextureOrigin> for BorrowedOpenGLTextureOrigin
impl PartialEq<BorrowedOpenGLTextureOrigin> for BorrowedOpenGLTextureOrigin
ยงfn eq(&self, other: &BorrowedOpenGLTextureOrigin) -> bool
fn eq(&self, other: &BorrowedOpenGLTextureOrigin) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for BorrowedOpenGLTextureOrigin
impl StructuralPartialEq for BorrowedOpenGLTextureOrigin
Auto Trait Implementationsยง
impl RefUnwindSafe for BorrowedOpenGLTextureOrigin
impl Send for BorrowedOpenGLTextureOrigin
impl Sync for BorrowedOpenGLTextureOrigin
impl Unpin for BorrowedOpenGLTextureOrigin
impl UnwindSafe for BorrowedOpenGLTextureOrigin
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
ยงimpl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere T: Any,
ยงfn into_any(self: Box<T, Global>) -> Box<dyn Any, Global>
fn into_any(self: Box<T, Global>) -> Box<dyn Any, Global>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.ยงfn into_any_rc(self: Rc<T, Global>) -> Rc<dyn Any, Global>
fn into_any_rc(self: Rc<T, Global>) -> Rc<dyn Any, Global>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.ยงfn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
โs vtable from &Trait
โs.ยงfn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
โs vtable from &mut Trait
โs.sourceยงimpl<T> Instrument for T
impl<T> Instrument for T
sourceยงfn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourceยงfn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
ยงimpl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere T: Default,
type NoneType = T
ยงfn null_value() -> T
fn null_value() -> T
The none-equivalent value.
ยงimpl<T> Pointable for T
impl<T> Pointable for T
sourceยงimpl<R, P> ReadPrimitive<R> for Pwhere
R: Read + ReadEndian<P>,
P: Default,
impl<R, P> ReadPrimitive<R> for Pwhere R: Read + ReadEndian<P>, P: Default,
sourceยงfn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian()
.