Trait databake::BakeSize

source ·
pub trait BakeSize: Sized + Bake {
    // Required method
    fn borrows_size(&self) -> usize;
}
Expand description

Allows returning the size of data borrowed by a baked struct.

Required Methods§

source

fn borrows_size(&self) -> usize

Returns the size

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl BakeSize for &str

source§

impl BakeSize for bool

source§

impl BakeSize for char

source§

impl BakeSize for f32

source§

impl BakeSize for f64

source§

impl BakeSize for i8

source§

impl BakeSize for i16

source§

impl BakeSize for i32

source§

impl BakeSize for i64

source§

impl BakeSize for i128

source§

impl BakeSize for isize

source§

impl BakeSize for u8

source§

impl BakeSize for u16

source§

impl BakeSize for u32

source§

impl BakeSize for u64

source§

impl BakeSize for u128

source§

impl BakeSize for ()

source§

impl BakeSize for usize

source§

impl<A> BakeSize for (A,)
where A: BakeSize,

source§

impl<A, B> BakeSize for (A, B)
where A: BakeSize, B: BakeSize,

source§

impl<A, B, C> BakeSize for (A, B, C)
where A: BakeSize, B: BakeSize, C: BakeSize,

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

impl<T> BakeSize for &[T]
where T: BakeSize,

source§

impl<T> BakeSize for Cow<'_, T>
where T: ?Sized + ToOwned, for<'a> &'a T: BakeSize,

source§

impl<T> BakeSize for Option<T>
where T: BakeSize,

source§

impl<T> BakeSize for &T
where T: BakeSize,

source§

impl<T, E> BakeSize for Result<T, E>
where T: BakeSize, E: BakeSize,

source§

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

source§

impl<T: ?Sized> BakeSize for PhantomData<T>

Implementors§

source§

impl<B, T> BakeSize for IteratorAsRefSlice<B, T>
where for<'a> &'a B: IntoIterator<Item = &'a T>, T: BakeSize,

source§

impl<T> BakeSize for AsStaticStr<T>
where T: AsRef<str>,