pub enum OverviewQualityHint {
ComputeAtRuntime,
AllUsable,
NoneUsable,
MinUsable(usize),
}Expand description
Hint for pre-computed overview quality analysis
This allows callers to skip the expensive runtime analysis by providing a pre-computed value (e.g., from a database).
Variants§
ComputeAtRuntime
Compute at runtime (default behavior) - samples tiles to determine quality
AllUsable
All overviews have sufficient data density
NoneUsable
No overviews have sufficient data - always use full resolution
MinUsable(usize)
Use overviews 0..=n (where n is the minimum usable overview index)
Implementations§
Source§impl OverviewQualityHint
impl OverviewQualityHint
Sourcepub fn from_db_value(value: Option<i32>) -> Self
pub fn from_db_value(value: Option<i32>) -> Self
Convert from database representation (Option<i32>)
None->ComputeAtRuntime(legacy layers without pre-computed value)Some(-1)->NoneUsable(force full resolution)Some(-2)->AllUsable(all overviews are good)Some(n)where n >= 0 -> MinUsable(n as usize)
Sourcepub fn to_db_value(&self) -> Option<i32>
pub fn to_db_value(&self) -> Option<i32>
Convert to database representation (Option<i32>)
Trait Implementations§
Source§impl Clone for OverviewQualityHint
impl Clone for OverviewQualityHint
Source§fn clone(&self) -> OverviewQualityHint
fn clone(&self) -> OverviewQualityHint
Returns a duplicate 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 OverviewQualityHint
impl Debug for OverviewQualityHint
Source§impl Default for OverviewQualityHint
impl Default for OverviewQualityHint
Source§fn default() -> OverviewQualityHint
fn default() -> OverviewQualityHint
Returns the “default value” for a type. Read more
Source§impl PartialEq for OverviewQualityHint
impl PartialEq for OverviewQualityHint
impl Copy for OverviewQualityHint
impl Eq for OverviewQualityHint
impl StructuralPartialEq for OverviewQualityHint
Auto Trait Implementations§
impl Freeze for OverviewQualityHint
impl RefUnwindSafe for OverviewQualityHint
impl Send for OverviewQualityHint
impl Sync for OverviewQualityHint
impl Unpin for OverviewQualityHint
impl UnwindSafe for OverviewQualityHint
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().