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§fn default() -> SurfaceIdentification
fn default() -> SurfaceIdentification
Returns the “default value” for a type. Read more
Source§impl From<&'static str> for SurfaceIdentification
impl From<&'static str> for SurfaceIdentification
Source§fn from(value: &'static str) -> SurfaceIdentification
fn from(value: &'static str) -> SurfaceIdentification
Converts to this type from the input type.
Source§impl From<LuaSurface> for SurfaceIdentification
impl From<LuaSurface> for SurfaceIdentification
Source§fn from(value: LuaSurface) -> SurfaceIdentification
fn from(value: LuaSurface) -> SurfaceIdentification
Converts to this type from the input type.
Source§impl From<u32> for SurfaceIdentification
impl From<u32> for SurfaceIdentification
Source§fn from(value: u32) -> SurfaceIdentification
fn from(value: u32) -> SurfaceIdentification
Converts to this type from the input type.
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