Struct FILE

#[repr(C)]
pub struct FILE { /* private fields */ }

This is an extern type ("opaque" or "incomplete" type in C).

This type's current representation allows inspecting some properties, such as via size_of, and it is technically possible to construct the type within MaybeUninit, However, this MUST NOT be relied upon because a future version of libc may switch to a proper extern type representation when available.

Trait Implementations

impl Clone for FILE

fn clone(&self) -> FILE

impl Copy for FILE

impl Debug for FILE

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Auto Trait Implementations

impl !Send for FILE

impl !Sync for FILE

impl !Unpin for FILE

impl Freeze for FILE

impl RefUnwindSafe for FILE

impl UnsafeUnpin for FILE

impl UnwindSafe for FILE

Blanket Implementations

impl<T> Any for FILE where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for FILE where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for FILE where T: ?Sized,

fn borrow_mut(&mut self) -> &mut T

impl<T> CloneToUninit for FILE where T: Clone,

unsafe fn clone_to_uninit(&self, dest: *mut u8)

impl<T> From<T> for FILE

fn from(t: T) -> T

Returns the argument unchanged.

impl<T, U> Into<U> for FILE where U: From<T>,

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom<U> for FILE where U: Into<T>,

type Error = never;
fn try_from(value: U) -> Result<T, never>

impl<T, U> TryInto<U> for FILE where U: TryFrom<T>,

type Error = <U as TryFrom<T>>::Error;
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>