#[repr(C)]pub struct SpatioTemporalLect {
pub lect_id_hash: u64,
pub base_dialect_hash: u64,
pub indigenous_substrate_hash: u64,
pub statutory_register_hash: u64,
pub occupational_vocab_hash: u64,
pub spatial_h3_cell: u64,
pub era_start_year: f32,
pub era_end_year: f32,
}Expand description
Spatio-Temporal Lect descriptor (sl:Lect) replacing commercial BCP 47 tags.
Fields§
§lect_id_hash: u64FNV-1a Q-Hash of the lect variety identifier
base_dialect_hash: u64Base linguistic substrate dialect (e.g. 19th-century Hiberno-English)
indigenous_substrate_hash: u64Regional Indigenous substrate loanword package hash
statutory_register_hash: u64Statutory and cadastral register hash
occupational_vocab_hash: u64Occupational vocabulary hash (e.g. pastoral, mining, maritime)
spatial_h3_cell: u64Geodesic H3 boundary cell of active lect usage
era_start_year: f32Historical start year (e.g. 1850.0)
era_end_year: f32Historical end year (e.g. 1920.0)
Implementations§
Source§impl SpatioTemporalLect
impl SpatioTemporalLect
Sourcepub fn composite_fingerprint(&self) -> u64
pub fn composite_fingerprint(&self) -> u64
Synthesizes a composite fingerprint combining all lect substrates.
Sourcepub fn is_active_at(&self, year: f32, h3_cell: u64) -> bool
pub fn is_active_at(&self, year: f32, h3_cell: u64) -> bool
Evaluates whether this lect was active at a given year and location.
Trait Implementations§
Source§impl Clone for SpatioTemporalLect
impl Clone for SpatioTemporalLect
Source§fn clone(&self) -> SpatioTemporalLect
fn clone(&self) -> SpatioTemporalLect
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SpatioTemporalLect
Source§impl Debug for SpatioTemporalLect
impl Debug for SpatioTemporalLect
Source§impl Default for SpatioTemporalLect
impl Default for SpatioTemporalLect
Source§fn default() -> SpatioTemporalLect
fn default() -> SpatioTemporalLect
Returns the “default value” for a type. Read more
Source§impl PartialEq for SpatioTemporalLect
impl PartialEq for SpatioTemporalLect
impl StructuralPartialEq for SpatioTemporalLect
Auto Trait Implementations§
impl Freeze for SpatioTemporalLect
impl RefUnwindSafe for SpatioTemporalLect
impl Send for SpatioTemporalLect
impl Sync for SpatioTemporalLect
impl Unpin for SpatioTemporalLect
impl UnsafeUnpin for SpatioTemporalLect
impl UnwindSafe for SpatioTemporalLect
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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 more§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.