pub struct UserData { /* private fields */ }
Expand description
Structure used to store user data for file callback
Implementations§
Source§impl UserData
impl UserData
pub fn set_user_data<'r, T>(&'r mut self, user_data: &'r mut T)
pub fn get_user_data<'r, T>(&self) -> Option<&'r mut T>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for UserData
impl RefUnwindSafe for UserData
impl !Send for UserData
impl !Sync for UserData
impl Unpin for UserData
impl UnwindSafe for UserData
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