pub type pid_t = i32;
Expand description

A type representing group ID.

Trait Implementations§

1.0.0 · source§

impl Binary for i32

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter.
1.0.0 · source§

impl Clone for i32

source§

fn clone(&self) -> i32

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
1.0.0 · source§

impl Debug for i32

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
1.0.0 · source§

impl Default for i32

source§

fn default() -> i32

Returns the default value of 0

source§

impl<'de> Deserialize<'de> for i32

source§

fn deserialize<D>( deserializer: D ) -> Result<i32, <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
1.0.0 · source§

impl Display for i32

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl From<&ErrNo> for i32

source§

fn from(e: &ErrNo) -> i32

Converts to this type from the input type.
§

impl From<ClockId> for i32

§

fn from(clock_id: ClockId) -> i32

Converts to this type from the input type.
§

impl From<Domain> for i32

§

fn from(d: Domain) -> i32

Converts to this type from the input type.
source§

impl From<Domain> for i32

source§

fn from(d: Domain) -> i32

Converts to this type from the input type.
source§

impl From<ErrNo> for i32

source§

fn from(e: ErrNo) -> i32

Converts to this type from the input type.
1.31.0 · source§

impl From<NonZeroI32> for i32

source§

fn from(nonzero: NonZeroI32) -> i32

Converts a NonZeroI32 into an i32

§

impl From<Offset32> for i32

§

fn from(val: Offset32) -> i32

Converts to this type from the input type.
§

impl From<Pid> for i32

§

fn from(pid: Pid) -> i32

Converts to this type from the input type.
§

impl From<Protocol> for i32

§

fn from(p: Protocol) -> i32

Converts to this type from the input type.
source§

impl From<Protocol> for i32

source§

fn from(p: Protocol) -> i32

Converts to this type from the input type.
source§

impl From<SignalKind> for i32

source§

fn from(kind: SignalKind) -> i32

Converts to this type from the input type.
§

impl From<Type> for i32

§

fn from(t: Type) -> i32

Converts to this type from the input type.
source§

impl From<Type> for i32

source§

fn from(t: Type) -> i32

Converts to this type from the input type.
1.28.0 · source§

impl From<bool> for i32

source§

fn from(small: bool) -> i32

Converts a bool to a i32. The resulting value is 0 for false and 1 for true values.

Examples
assert_eq!(i32::from(true), 1);
assert_eq!(i32::from(false), 0);
1.5.0 · source§

impl From<i16> for i32

source§

fn from(small: i16) -> i32

Converts i16 to i32 losslessly.

1.5.0 · source§

impl From<i8> for i32

source§

fn from(small: i8) -> i32

Converts i8 to i32 losslessly.

1.5.0 · source§

impl From<u16> for i32

source§

fn from(small: u16) -> i32

Converts u16 to i32 losslessly.

1.5.0 · source§

impl From<u8> for i32

source§

fn from(small: u8) -> i32

Converts u8 to i32 losslessly.

source§

impl<'de, E> IntoDeserializer<'de, E> for i32where E: Error,

§

type Deserializer = I32Deserializer<E>

The type of the deserializer being converted into.
source§

fn into_deserializer(self) -> I32Deserializer<E>

Convert this value into a deserializer.
1.42.0 · source§

impl LowerExp for i32

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter.
1.0.0 · source§

impl LowerHex for i32

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter.
1.0.0 · source§

impl Octal for i32

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter.
source§

impl Serialize for i32

source§

fn serialize<S>( &self, serializer: S ) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl ToValue for i32

source§

fn to_value(&self) -> Value<'_>

Perform the conversion.
source§

impl TryFrom<&BigInt> for i32

§

type Error = TryFromBigIntError<()>

The type returned in the event of a conversion error.
source§

fn try_from(value: &BigInt) -> Result<i32, TryFromBigIntError<()>>

Performs the conversion.
source§

impl TryFrom<&BigUint> for i32

§

type Error = TryFromBigIntError<()>

The type returned in the event of a conversion error.
source§

fn try_from(value: &BigUint) -> Result<i32, TryFromBigIntError<()>>

Performs the conversion.
source§

impl TryFrom<BigInt> for i32

§

type Error = TryFromBigIntError<BigInt>

The type returned in the event of a conversion error.
source§

fn try_from(value: BigInt) -> Result<i32, TryFromBigIntError<BigInt>>

Performs the conversion.
source§

impl TryFrom<BigUint> for i32

§

type Error = TryFromBigIntError<BigUint>

The type returned in the event of a conversion error.
source§

fn try_from(value: BigUint) -> Result<i32, TryFromBigIntError<BigUint>>

Performs the conversion.
§

impl<T> TryFrom<Value<T>> for i32where T: WasmValueType,

§

type Error = &'static str

The type returned in the event of a conversion error.
§

fn try_from(value: Value<T>) -> Result<i32, <i32 as TryFrom<Value<T>>>::Error>

Performs the conversion.
1.34.0 · source§

impl TryFrom<i128> for i32

source§

fn try_from(u: i128) -> Result<i32, <i32 as TryFrom<i128>>::Error>

Try to create the target number type from a source number type. This returns an error if the source value is outside of the range of the target type.

§

type Error = TryFromIntError

The type returned in the event of a conversion error.
1.34.0 · source§

impl TryFrom<i64> for i32

source§

fn try_from(u: i64) -> Result<i32, <i32 as TryFrom<i64>>::Error>

Try to create the target number type from a source number type. This returns an error if the source value is outside of the range of the target type.

§

type Error = TryFromIntError

The type returned in the event of a conversion error.
1.34.0 · source§

impl TryFrom<isize> for i32

source§

fn try_from(u: isize) -> Result<i32, <i32 as TryFrom<isize>>::Error>

Try to create the target number type from a source number type. This returns an error if the source value is outside of the range of the target type.

§

type Error = TryFromIntError

The type returned in the event of a conversion error.
1.34.0 · source§

impl TryFrom<u128> for i32

source§

fn try_from(u: u128) -> Result<i32, <i32 as TryFrom<u128>>::Error>

Try to create the target number type from a source number type. This returns an error if the source value is outside of the range of the target type.

§

type Error = TryFromIntError

The type returned in the event of a conversion error.
1.34.0 · source§

impl TryFrom<u32> for i32

source§

fn try_from(u: u32) -> Result<i32, <i32 as TryFrom<u32>>::Error>

Try to create the target number type from a source number type. This returns an error if the source value is outside of the range of the target type.

§

type Error = TryFromIntError

The type returned in the event of a conversion error.
1.34.0 · source§

impl TryFrom<u64> for i32

source§

fn try_from(u: u64) -> Result<i32, <i32 as TryFrom<u64>>::Error>

Try to create the target number type from a source number type. This returns an error if the source value is outside of the range of the target type.

§

type Error = TryFromIntError

The type returned in the event of a conversion error.
1.34.0 · source§

impl TryFrom<usize> for i32

source§

fn try_from(u: usize) -> Result<i32, <i32 as TryFrom<usize>>::Error>

Try to create the target number type from a source number type. This returns an error if the source value is outside of the range of the target type.

§

type Error = TryFromIntError

The type returned in the event of a conversion error.
1.42.0 · source§

impl UpperExp for i32

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter.
1.0.0 · source§

impl UpperHex for i32

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter.
§

impl Value for i32

§

fn record(&self, key: &Field, visitor: &mut dyn Visit)

Visits this value with the given Visitor.