#[repr(transparent)]pub struct SDL_IOWhence(pub c_int);Expand description
Possible whence values for SDL_IOStream seeking.
These map to the same “whence” concept that fseek or lseek use in the
standard C runtime.
§Availability
This enum is available since SDL 3.2.0.
§Known values (sdl3-sys)
| Associated constant | Global constant | Description |
|---|---|---|
SET | SDL_IO_SEEK_SET | Seek from the beginning of data |
CUR | SDL_IO_SEEK_CUR | Seek relative to current read point |
END | SDL_IO_SEEK_END | Seek relative to the end of data |
Tuple Fields§
§0: c_intImplementations§
Trait Implementations§
Source§impl Clone for SDL_IOWhence
impl Clone for SDL_IOWhence
Source§fn clone(&self) -> SDL_IOWhence
fn clone(&self) -> SDL_IOWhence
Returns a duplicate 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 SDL_IOWhence
Available on crate feature debug-impls only.
impl Debug for SDL_IOWhence
Available on crate feature
debug-impls only.Source§impl Default for SDL_IOWhence
impl Default for SDL_IOWhence
Source§fn default() -> SDL_IOWhence
fn default() -> SDL_IOWhence
Returns the “default value” for a type. Read more
Source§impl From<SDL_IOWhence> for c_int
impl From<SDL_IOWhence> for c_int
Source§fn from(value: SDL_IOWhence) -> Self
fn from(value: SDL_IOWhence) -> Self
Converts to this type from the input type.
Source§impl GroupMetadata for SDL_IOWhence
Available on crate feature metadata only.
impl GroupMetadata for SDL_IOWhence
Available on crate feature
metadata only.Source§const GROUP_METADATA: &'static Group
const GROUP_METADATA: &'static Group
Metadata for this group
Source§impl Hash for SDL_IOWhence
impl Hash for SDL_IOWhence
Source§impl Ord for SDL_IOWhence
impl Ord for SDL_IOWhence
Source§fn cmp(&self, other: &SDL_IOWhence) -> Ordering
fn cmp(&self, other: &SDL_IOWhence) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq<SDL_IOWhence> for c_int
impl PartialEq<SDL_IOWhence> for c_int
Source§impl PartialEq<i32> for SDL_IOWhence
impl PartialEq<i32> for SDL_IOWhence
Source§impl PartialEq for SDL_IOWhence
impl PartialEq for SDL_IOWhence
Source§impl PartialOrd for SDL_IOWhence
impl PartialOrd for SDL_IOWhence
impl Copy for SDL_IOWhence
impl Eq for SDL_IOWhence
impl StructuralPartialEq for SDL_IOWhence
Auto Trait Implementations§
impl Freeze for SDL_IOWhence
impl RefUnwindSafe for SDL_IOWhence
impl Send for SDL_IOWhence
impl Sync for SDL_IOWhence
impl Unpin for SDL_IOWhence
impl UnwindSafe for SDL_IOWhence
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