pub enum SurfaceIdentification {
Index(u32),
Name(&'static str),
Surface(LuaSurface),
}Expand description
A surface may be specified in one of three ways.
Variants§
Trait Implementations§
Source§impl Clone for SurfaceIdentification
impl Clone for SurfaceIdentification
Source§fn clone(&self) -> SurfaceIdentification
fn clone(&self) -> SurfaceIdentification
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SurfaceIdentification
Source§impl Debug for SurfaceIdentification
impl Debug for SurfaceIdentification
Source§impl Default for SurfaceIdentification
impl Default for SurfaceIdentification
Source§impl From<&'static str> for SurfaceIdentification
impl From<&'static str> for SurfaceIdentification
Source§impl From<LuaSurface> for SurfaceIdentification
impl From<LuaSurface> for SurfaceIdentification
Source§fn from(value: LuaSurface) -> Self
fn from(value: LuaSurface) -> Self
Converts to this type from the input type.
Source§impl From<SurfaceIdentification> for LuaAny
impl From<SurfaceIdentification> for LuaAny
Source§fn from(_: SurfaceIdentification) -> Self
fn from(_: SurfaceIdentification) -> Self
Converts to this type from the input type.
Source§impl From<u32> for SurfaceIdentification
impl From<u32> for SurfaceIdentification
Source§impl PartialEq for SurfaceIdentification
impl PartialEq for SurfaceIdentification
impl StructuralPartialEq for SurfaceIdentification
Auto Trait Implementations§
impl Freeze for SurfaceIdentification
impl RefUnwindSafe for SurfaceIdentification
impl Send for SurfaceIdentification
impl Sync for SurfaceIdentification
impl Unpin for SurfaceIdentification
impl UnsafeUnpin for SurfaceIdentification
impl UnwindSafe for SurfaceIdentification
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