pub trait ExNeg {
type ExternalTraitSpecificationFor: Neg;
type Output;
// Required methods
spec fn obeys_neg_spec() -> bool;
spec fn neg_req(self) -> bool
where Self: Sized;
spec fn neg_spec(self) -> Self::Output
where Self: Sized;
exec fn neg(self) -> ret : Self::Output;
}
Required Associated Types§
Required Methods§
Sourcespec fn obeys_neg_spec() -> bool
spec fn obeys_neg_spec() -> bool
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.