Trait cwe_checker_lib::abstract_domain::SizedDomain
source · pub trait SizedDomain {
// Required methods
fn bytesize(&self) -> ByteSize;
fn new_top(bytesize: ByteSize) -> Self;
}
Expand description
A trait for types representing values with a fixed size (in bytes).
For abstract domains, the bytesize is a parameter of the domain itself, i.e. you cannot merge values of different bytesizes, since they lie in different posets (one for each bytesize).
Required Methods§
Object Safety§
This trait is not object safe.