pub struct Student {
pub name: &'static str,
pub grade: f32,
}Fields§
§name: &'static str§grade: f32Trait Implementations§
Source§impl Ord for Student
impl Ord for Student
Source§impl PartialOrd for Student
impl PartialOrd for Student
impl Eq for Student
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