Struct rich_sdl2_rust::SdlVersion
source · pub struct SdlVersion {
pub major: u8,
pub minor: u8,
pub patch: u8,
}
Expand description
A version for SDL2.
Fields§
§major: u8
A major number in the version.
minor: u8
A minor number in the version.
patch: u8
A patch number in the version.
Trait Implementations§
source§impl Clone for SdlVersion
impl Clone for SdlVersion
source§fn clone(&self) -> SdlVersion
fn clone(&self) -> SdlVersion
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 moresource§impl Debug for SdlVersion
impl Debug for SdlVersion
source§impl From<SDL_version> for SdlVersion
impl From<SDL_version> for SdlVersion
source§impl PartialEq for SdlVersion
impl PartialEq for SdlVersion
source§fn eq(&self, other: &SdlVersion) -> bool
fn eq(&self, other: &SdlVersion) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for SdlVersion
impl Eq for SdlVersion
impl StructuralPartialEq for SdlVersion
Auto Trait Implementations§
impl RefUnwindSafe for SdlVersion
impl Send for SdlVersion
impl Sync for SdlVersion
impl Unpin for SdlVersion
impl UnwindSafe for SdlVersion
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