Trait flatcontainer::RegionPreference

source ·
pub trait RegionPreference {
    type Owned;
    type Region: Region<Owned = Self::Owned>;
}
Expand description

A trait to let types express a default container type and an owned type, which can be used to define regions in simpler terms.

§Example

let _ = FlatStack::<<((Vec<String>, &[usize]), Option<String>, Result<u8, u16>) as RegionPreference>::Region>::default();

Required Associated Types§

source

type Owned

The owned type of the region.

source

type Region: Region<Owned = Self::Owned>

The recommended container type.

Implementations on Foreign Types§

source§

impl RegionPreference for &str

source§

impl RegionPreference for bool

source§

impl RegionPreference for char

source§

impl RegionPreference for f32

source§

impl RegionPreference for f64

source§

impl RegionPreference for i8

source§

impl RegionPreference for i16

source§

impl RegionPreference for i32

source§

impl RegionPreference for i64

source§

impl RegionPreference for i128

source§

impl RegionPreference for isize

source§

impl RegionPreference for u8

source§

impl RegionPreference for u16

source§

impl RegionPreference for u32

source§

impl RegionPreference for u64

source§

impl RegionPreference for u128

source§

impl RegionPreference for ()

source§

impl RegionPreference for usize

source§

impl RegionPreference for String

source§

impl RegionPreference for Wrapping<i8>

source§

impl RegionPreference for Wrapping<i16>

source§

impl RegionPreference for Wrapping<i32>

source§

impl RegionPreference for Wrapping<i64>

source§

impl RegionPreference for Wrapping<i128>

source§

impl RegionPreference for Wrapping<isize>

source§

impl RegionPreference for Duration

source§

impl<A: RegionPreference> RegionPreference for (A,)

source§

impl<A: RegionPreference, B: RegionPreference> RegionPreference for (A, B)

source§

impl<A: RegionPreference, B: RegionPreference, C: RegionPreference> RegionPreference for (A, B, C)

source§

impl<A: RegionPreference, B: RegionPreference, C: RegionPreference, D: RegionPreference> RegionPreference for (A, B, C, D)

source§

impl<A: RegionPreference, B: RegionPreference, C: RegionPreference, D: RegionPreference, E: RegionPreference> RegionPreference for (A, B, C, D, E)

source§

impl<A: RegionPreference, B: RegionPreference, C: RegionPreference, D: RegionPreference, E: RegionPreference, F: RegionPreference> RegionPreference for (A, B, C, D, E, F)

source§

impl<A: RegionPreference, B: RegionPreference, C: RegionPreference, D: RegionPreference, E: RegionPreference, F: RegionPreference, G: RegionPreference> RegionPreference for (A, B, C, D, E, F, G)

source§

impl<A: RegionPreference, B: RegionPreference, C: RegionPreference, D: RegionPreference, E: RegionPreference, F: RegionPreference, G: RegionPreference, H: RegionPreference> RegionPreference for (A, B, C, D, E, F, G, H)

source§

impl<A: RegionPreference, B: RegionPreference, C: RegionPreference, D: RegionPreference, E: RegionPreference, F: RegionPreference, G: RegionPreference, H: RegionPreference, I: RegionPreference> RegionPreference for (A, B, C, D, E, F, G, H, I)

source§

impl<A: RegionPreference, B: RegionPreference, C: RegionPreference, D: RegionPreference, E: RegionPreference, F: RegionPreference, G: RegionPreference, H: RegionPreference, I: RegionPreference, J: RegionPreference> RegionPreference for (A, B, C, D, E, F, G, H, I, J)

source§

impl<A: RegionPreference, B: RegionPreference, C: RegionPreference, D: RegionPreference, E: RegionPreference, F: RegionPreference, G: RegionPreference, H: RegionPreference, I: RegionPreference, J: RegionPreference, K: RegionPreference> RegionPreference for (A, B, C, D, E, F, G, H, I, J, K)

source§

impl<A: RegionPreference, B: RegionPreference, C: RegionPreference, D: RegionPreference, E: RegionPreference, F: RegionPreference, G: RegionPreference, H: RegionPreference, I: RegionPreference, J: RegionPreference, K: RegionPreference, L: RegionPreference> RegionPreference for (A, B, C, D, E, F, G, H, I, J, K, L)

source§

impl<A: RegionPreference, B: RegionPreference, C: RegionPreference, D: RegionPreference, E: RegionPreference, F: RegionPreference, G: RegionPreference, H: RegionPreference, I: RegionPreference, J: RegionPreference, K: RegionPreference, L: RegionPreference, M: RegionPreference> RegionPreference for (A, B, C, D, E, F, G, H, I, J, K, L, M)

source§

impl<A: RegionPreference, B: RegionPreference, C: RegionPreference, D: RegionPreference, E: RegionPreference, F: RegionPreference, G: RegionPreference, H: RegionPreference, I: RegionPreference, J: RegionPreference, K: RegionPreference, L: RegionPreference, M: RegionPreference, N: RegionPreference> RegionPreference for (A, B, C, D, E, F, G, H, I, J, K, L, M, N)

source§

impl<A: RegionPreference, B: RegionPreference, C: RegionPreference, D: RegionPreference, E: RegionPreference, F: RegionPreference, G: RegionPreference, H: RegionPreference, I: RegionPreference, J: RegionPreference, K: RegionPreference, L: RegionPreference, M: RegionPreference, N: RegionPreference, O: RegionPreference> RegionPreference for (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O)

source§

impl<A: RegionPreference, B: RegionPreference, C: RegionPreference, D: RegionPreference, E: RegionPreference, F: RegionPreference, G: RegionPreference, H: RegionPreference, I: RegionPreference, J: RegionPreference, K: RegionPreference, L: RegionPreference, M: RegionPreference, N: RegionPreference, O: RegionPreference, P: RegionPreference> RegionPreference for (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P)

source§

impl<T: RegionPreference + ?Sized> RegionPreference for &T

source§

impl<T: RegionPreference> RegionPreference for Option<T>

source§

impl<T: RegionPreference> RegionPreference for [T]

source§

impl<T: RegionPreference> RegionPreference for Vec<T>

source§

impl<T: RegionPreference, E: RegionPreference> RegionPreference for Result<T, E>

source§

impl<T: RegionPreference, const N: usize> RegionPreference for [T; N]

Implementors§