Skip to main content

Size

Trait Size 

Source
pub trait Size:
    Debug
    + Clone
    + Copy
    + Send
    + Sync
    + 'static {
    // Required method
    fn __expand_value(scope: &Scope) -> usize;

    // Provided methods
    fn value() -> usize { ... }
    fn try_value_const() -> Option<usize> { ... }
}

Required Methods§

Provided Methods§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<Marker: 'static> Size for DynamicSize<Marker>

Source§

impl<const VALUE: usize> Size for Const<VALUE>