Struct map_model::RoadFilter
source · pub struct RoadFilter {
pub dist: Distance,
pub filter_type: FilterType,
}
Expand description
A filter placed somewhere along a road
Fields§
§dist: Distance
§filter_type: FilterType
Implementations§
source§impl RoadFilter
impl RoadFilter
pub fn new(dist: Distance, filter_type: FilterType) -> Self
Trait Implementations§
source§impl Clone for RoadFilter
impl Clone for RoadFilter
source§fn clone(&self) -> RoadFilter
fn clone(&self) -> RoadFilter
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for RoadFilter
impl Debug for RoadFilter
source§impl<'de> Deserialize<'de> for RoadFilter
impl<'de> Deserialize<'de> for RoadFilter
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for RoadFilter
impl PartialEq for RoadFilter
source§fn eq(&self, other: &RoadFilter) -> bool
fn eq(&self, other: &RoadFilter) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for RoadFilter
impl Serialize for RoadFilter
impl StructuralPartialEq for RoadFilter
Auto Trait Implementations§
impl Freeze for RoadFilter
impl RefUnwindSafe for RoadFilter
impl Send for RoadFilter
impl Sync for RoadFilter
impl Unpin for RoadFilter
impl UnwindSafe for RoadFilter
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