c_int

Type Alias c_int 

1.64.0 · Source
pub(crate) type c_int = i32;
Expand description

Equivalent to C’s signed int (int) type.

This type will almost always be i32, but may differ on some esoteric systems. The C standard technically only requires that this type be a signed integer that is at least the size of a short; some systems define it as an i16, for example.

Trait Implementations§

Source§

impl From<Domain> for c_int

Source§

fn from(d: Domain) -> c_int

Converts to this type from the input type.
Source§

impl From<Protocol> for c_int

Source§

fn from(p: Protocol) -> c_int

Converts to this type from the input type.
Source§

impl From<Type> for c_int

Source§

fn from(t: Type) -> c_int

Converts to this type from the input type.