Trait columnar::common::index::CopyAs

source ·
pub trait CopyAs<T> {
    // Required method
    fn copy_as(self) -> T;
}
Expand description

Types that can be converted into another type by copying.

We use this trait to unify the ability of T and &T to be converted into T. This is handy for copy types that we’d like to use, like u8, u64 and usize.

Required Methods§

source

fn copy_as(self) -> T

Implementations on Foreign Types§

source§

impl<T: Copy> CopyAs<T> for &T

source§

fn copy_as(self) -> T

Implementors§

source§

impl<T> CopyAs<T> for T