pub trait Addresses<T: Address + Clone + Send + Sync>{
// Provided methods
fn filter(&self, filter: &str) -> Vec<T> { ... }
fn filter_field(&mut self, filter: &str, field: &str) { ... }
fn contains_street(&self, street: &String) -> bool { ... }
fn orphan_streets<V: Address + Clone + Send + Sync, U: Addresses<V>>(
&self,
other: &U,
) -> Vec<String> { ... }
fn citify(&mut self) { ... }
fn lexis_nexis(&self, other: &Self) -> Result<LexisNexis, Builder> { ... }
fn standardize(&mut self) { ... }
}Expand description
The Addresses trait enables methods that act on vectors of type Address.
Provided Methods§
Sourcefn filter(&self, filter: &str) -> Vec<T>
fn filter(&self, filter: &str) -> Vec<T>
The filter method returns the subset of addresses that match the filter. Current values
include “duplicate”, which retains addresses that contain a duplicate in the set.
Sourcefn filter_field(&mut self, filter: &str, field: &str)
fn filter_field(&mut self, filter: &str, field: &str)
The filter_field method returns the subset of addresses where the field filter is equal
to the value in field.
Sourcefn contains_street(&self, street: &String) -> bool
fn contains_street(&self, street: &String) -> bool
Compares the complete street name of an address to the value in street, returning true if
equal.
Sourcefn orphan_streets<V: Address + Clone + Send + Sync, U: Addresses<V>>(
&self,
other: &U,
) -> Vec<String>
fn orphan_streets<V: Address + Clone + Send + Sync, U: Addresses<V>>( &self, other: &U, ) -> Vec<String>
The orphan_streets method returns the list of complete street names that are contained in
self but are not present in other.
Sourcefn citify(&mut self)
fn citify(&mut self)
The citify method takes county address naming conventions and converts them to city
naming conventions.
Sourcefn lexis_nexis(&self, other: &Self) -> Result<LexisNexis, Builder>
fn lexis_nexis(&self, other: &Self) -> Result<LexisNexis, Builder>
The LexisNexis method produces the LexisNexis table showing dispatch jurisdiction for
address ranges within the City of Grants Pass.
Sourcefn standardize(&mut self)
fn standardize(&mut self)
The standardize method takes county address naming conventions and converts them to city
naming conventions.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.