jiff::tz::timezone::repr::polyfill

Trait StrictProvenancePolyfill

Source
pub(super) trait StrictProvenancePolyfill:
    Sized
    + Clone
    + Copy {
    // Required methods
    fn addr(&self) -> usize;
    fn with_addr(&self, addr: usize) -> Self;

    // Provided method
    fn map_addr(&self, map: impl FnOnce(usize) -> usize) -> Self { ... }
}

Required Methods§

Source

fn addr(&self) -> usize

Source

fn with_addr(&self, addr: usize) -> Self

Provided Methods§

Source

fn map_addr(&self, map: impl FnOnce(usize) -> usize) -> Self

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.

Implementations on Foreign Types§

Source§

impl StrictProvenancePolyfill for *const u8

Source§

fn addr(&self) -> usize

Source§

fn with_addr(&self, address: usize) -> Self

Implementors§