Skip to main content

Structural

Trait Structural 

pub unsafe trait Structural { }
Expand description

derive(Structural) means that exec-mode == and ghost == always yield the same result. derive(Structural) is only allowed when all the fields of a type are also Structural. derive(StructuralEq) means derive(Structural) and also implement PartialEqSpec, setting eq_spec to == and obeys_eq_spec to true.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

§

impl Structural for ()

§

impl Structural for bool

§

impl Structural for char

§

impl Structural for i8

§

impl Structural for i16

§

impl Structural for i32

§

impl Structural for i64

§

impl Structural for i128

§

impl Structural for isize

§

impl Structural for u8

§

impl Structural for u16

§

impl Structural for u32

§

impl Structural for u64

§

impl Structural for u128

§

impl Structural for usize

§

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

§

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

§

impl<C, D, E, F, G, H, I, J, K, L> Structural for (C, D, E, F, G, H, I, J, K, L)

§

impl<D, E, F, G, H, I, J, K, L> Structural for (D, E, F, G, H, I, J, K, L)

§

impl<E, F, G, H, I, J, K, L> Structural for (E, F, G, H, I, J, K, L)

§

impl<F, G, H, I, J, K, L> Structural for (F, G, H, I, J, K, L)

§

impl<G, H, I, J, K, L> Structural for (G, H, I, J, K, L)

§

impl<H, I, J, K, L> Structural for (H, I, J, K, L)

§

impl<I, J, K, L> Structural for (I, J, K, L)

§

impl<J, K, L> Structural for (J, K, L)
where J: Structural, K: Structural, L: Structural,

§

impl<K, L> Structural for (K, L)
where K: Structural, L: Structural,

§

impl<L> Structural for (L,)
where L: Structural,

§

impl<S> Structural for &S
where S: Structural + ?Sized,

§

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

§

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

§

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

Implementors§

§

impl Structural for int

§

impl Structural for nat