#[repr(transparent)]pub struct SDL_PathType(pub c_int);
Expand description
Types of filesystem entries.
Note that there may be other sorts of items on a filesystem: devices,
symlinks, named pipes, etc. They are currently reported as
SDL_PATHTYPE_OTHER
.
§Availability
This enum is available since SDL 3.2.0.
§See also
§Known values (sdl3-sys
)
Associated constant | Global constant | Description |
---|---|---|
NONE | SDL_PATHTYPE_NONE | path does not exist |
FILE | SDL_PATHTYPE_FILE | a normal file |
DIRECTORY | SDL_PATHTYPE_DIRECTORY | a directory |
OTHER | SDL_PATHTYPE_OTHER | something completely different like a device node (not a symlink, those are always followed) |
Tuple Fields§
§0: c_int
Implementations§
Trait Implementations§
Source§impl Clone for SDL_PathType
impl Clone for SDL_PathType
Source§fn clone(&self) -> SDL_PathType
fn clone(&self) -> SDL_PathType
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_PathType
Available on crate feature debug-impls
only.
impl Debug for SDL_PathType
Available on crate feature
debug-impls
only.Source§impl Default for SDL_PathType
impl Default for SDL_PathType
Source§fn default() -> SDL_PathType
fn default() -> SDL_PathType
Returns the “default value” for a type. Read more
Source§impl From<SDL_PathType> for c_int
impl From<SDL_PathType> for c_int
Source§fn from(value: SDL_PathType) -> Self
fn from(value: SDL_PathType) -> Self
Converts to this type from the input type.
Source§impl Hash for SDL_PathType
impl Hash for SDL_PathType
Source§impl Ord for SDL_PathType
impl Ord for SDL_PathType
Source§fn cmp(&self, other: &SDL_PathType) -> Ordering
fn cmp(&self, other: &SDL_PathType) -> 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 for SDL_PathType
impl PartialEq for SDL_PathType
Source§impl PartialOrd for SDL_PathType
impl PartialOrd for SDL_PathType
impl Copy for SDL_PathType
impl Eq for SDL_PathType
impl StructuralPartialEq for SDL_PathType
Auto Trait Implementations§
impl Freeze for SDL_PathType
impl RefUnwindSafe for SDL_PathType
impl Send for SDL_PathType
impl Sync for SDL_PathType
impl Unpin for SDL_PathType
impl UnwindSafe for SDL_PathType
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