pub trait ChangeResolutionOpwhere
Self: Sized,{
// Required methods
fn change_resolution(&self, resolution: Resolution) -> Result<Self, Error>;
fn change_resolution_list(
&self,
resolution: Resolution,
) -> Result<H3ListArray<CellIndex>, Error>;
fn change_resolution_paired(
&self,
resolution: Resolution,
) -> Result<ChangedResolutionPair<Self>, Error>;
}
Required Methods§
Sourcefn change_resolution(&self, resolution: Resolution) -> Result<Self, Error>
fn change_resolution(&self, resolution: Resolution) -> Result<Self, Error>
change the H3 resolutions of all contained values to resolution
.
In case of resolution increases all child indexes will be added, so the returned
value may contain more indexes than self
.
Invalid/empty values are omitted.
Sourcefn change_resolution_list(
&self,
resolution: Resolution,
) -> Result<H3ListArray<CellIndex>, Error>
fn change_resolution_list( &self, resolution: Resolution, ) -> Result<H3ListArray<CellIndex>, Error>
Change the H3 resolutions of all contained values to resolution
.
The output list array has the same length as the input array, positions of the elements in input and output are corresponding to each other.
Invalid/empty values are preserved as such.
Sourcefn change_resolution_paired(
&self,
resolution: Resolution,
) -> Result<ChangedResolutionPair<Self>, Error>
fn change_resolution_paired( &self, resolution: Resolution, ) -> Result<ChangedResolutionPair<Self>, Error>
change the H3 resolutions of all contained values to resolution
and build a before-array
with the input values for each after-value.
The length of the returned before
and after
values are guaranteed to be the same, as
before-elements are repeated according to the resulting number of after-elements.
Invalid/empty values are omitted.
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.