Skip to main content

TiffSample

Trait TiffSample 

Source
pub trait TiffSample: Clone + 'static {
    // Required methods
    fn matches_layout(layout: &RasterLayout) -> bool;
    fn decode_many(bytes: &[u8]) -> Vec<Self>;
    fn type_name() -> &'static str;
}
Expand description

Types that can be read directly from a decoded TIFF raster.

Required Methods§

Source

fn matches_layout(layout: &RasterLayout) -> bool

Source

fn decode_many(bytes: &[u8]) -> Vec<Self>

Source

fn type_name() -> &'static str

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 TiffSample for f32

Source§

fn matches_layout(layout: &RasterLayout) -> bool

Source§

fn decode_many(bytes: &[u8]) -> Vec<f32>

Source§

fn type_name() -> &'static str

Source§

impl TiffSample for f64

Source§

fn matches_layout(layout: &RasterLayout) -> bool

Source§

fn decode_many(bytes: &[u8]) -> Vec<f64>

Source§

fn type_name() -> &'static str

Source§

impl TiffSample for i8

Source§

fn matches_layout(layout: &RasterLayout) -> bool

Source§

fn decode_many(bytes: &[u8]) -> Vec<i8>

Source§

fn type_name() -> &'static str

Source§

impl TiffSample for i16

Source§

fn matches_layout(layout: &RasterLayout) -> bool

Source§

fn decode_many(bytes: &[u8]) -> Vec<i16>

Source§

fn type_name() -> &'static str

Source§

impl TiffSample for i32

Source§

fn matches_layout(layout: &RasterLayout) -> bool

Source§

fn decode_many(bytes: &[u8]) -> Vec<i32>

Source§

fn type_name() -> &'static str

Source§

impl TiffSample for i64

Source§

fn matches_layout(layout: &RasterLayout) -> bool

Source§

fn decode_many(bytes: &[u8]) -> Vec<i64>

Source§

fn type_name() -> &'static str

Source§

impl TiffSample for u8

Source§

fn matches_layout(layout: &RasterLayout) -> bool

Source§

fn decode_many(bytes: &[u8]) -> Vec<u8>

Source§

fn type_name() -> &'static str

Source§

impl TiffSample for u16

Source§

fn matches_layout(layout: &RasterLayout) -> bool

Source§

fn decode_many(bytes: &[u8]) -> Vec<u16>

Source§

fn type_name() -> &'static str

Source§

impl TiffSample for u32

Source§

fn matches_layout(layout: &RasterLayout) -> bool

Source§

fn decode_many(bytes: &[u8]) -> Vec<u32>

Source§

fn type_name() -> &'static str

Source§

impl TiffSample for u64

Source§

fn matches_layout(layout: &RasterLayout) -> bool

Source§

fn decode_many(bytes: &[u8]) -> Vec<u64>

Source§

fn type_name() -> &'static str

Implementors§