pub struct ParamAttrs {
pub noundef: bool,
pub range: Option<(String, String)>,
pub nofpclass: u16,
pub returned: bool,
}Expand description
What a function declares about a parameter or its return value, or a call about an argument or its result: the attributes that change what the value may be.
Fields§
§noundef: boolnoundef: a poison value is undefined behavior.
range: Option<(String, String)>range(ty lo, hi): outside [lo, hi), wrapping, the value is poison.
nofpclass: u16nofpclass(…): in these classes (nan, inf, zero, … as bits), the value is
poison.
returned: boolreturned (a parameter): the function returns this argument, which callers may rely
on, so returning anything else is undefined behavior.
Implementations§
Trait Implementations§
Source§impl Clone for ParamAttrs
impl Clone for ParamAttrs
Source§impl Debug for ParamAttrs
impl Debug for ParamAttrs
Source§impl Default for ParamAttrs
impl Default for ParamAttrs
impl Eq for ParamAttrs
Source§impl PartialEq for ParamAttrs
impl PartialEq for ParamAttrs
impl StructuralPartialEq for ParamAttrs
Auto Trait Implementations§
impl Forget for ParamAttrs
impl Freeze for ParamAttrs
impl Move for ParamAttrs
impl RefUnwindSafe for ParamAttrs
impl Send for ParamAttrs
impl Sync for ParamAttrs
impl Unpin for ParamAttrs
impl UnsafeUnpin for ParamAttrs
impl UnwindSafe for ParamAttrs
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more