pub struct Worker {
pub adult: bool,
pub profession: usize,
pub workplace: Option<usize>,
pub home: Option<usize>,
}Expand description
The citizen fields assignment reads and writes (Citizen).
Fields§
§adult: booldesc <= age and no school: the citizens every search counts.
profession: usizeThe profession.
workplace: Option<usize>The workplace, if any.
home: Option<usize>The home, if any.
Trait Implementations§
impl Copy for Worker
impl Eq for Worker
impl StructuralPartialEq for Worker
Auto Trait Implementations§
impl Freeze for Worker
impl RefUnwindSafe for Worker
impl Send for Worker
impl Sync for Worker
impl Unpin for Worker
impl UnsafeUnpin for Worker
impl UnwindSafe for Worker
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