pub struct Gradient {
pub signal_type: SignalType,
pub direction: Position,
pub magnitude: f64,
}Expand description
A directional gradient sensed by an agent.
Fields§
§signal_type: SignalType§direction: Position§magnitude: f64Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Gradient
impl RefUnwindSafe for Gradient
impl Send for Gradient
impl Sync for Gradient
impl Unpin for Gradient
impl UnwindSafe for Gradient
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