Trait Addresses

Source
pub trait Addresses<T: Address + Clone + Send + Sync>
where Self: Deref<Target = Vec<T>> + DerefMut<Target = Vec<T>> + Clone,
{ // 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§

Source

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.

Source

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.

Source

fn contains_street(&self, street: &String) -> bool

Compares the complete street name of an address to the value in street, returning true if equal.

Source

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.

Source

fn citify(&mut self)

The citify method takes county address naming conventions and converts them to city naming conventions.

Source

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.

Source

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.

Implementors§