pub struct Student {
pub name: &'static str,
pub grade: f32,
}Fields§
§name: &'static str§grade: f32Trait Implementations§
Auto Trait Implementations§
impl Freeze for Student
impl RefUnwindSafe for Student
impl Send for Student
impl Sync for Student
impl Unpin for Student
impl UnwindSafe for Student
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