Trait gstreamer::format::UnsignedIntoSigned

source ·
pub trait UnsignedIntoSigned: Copy + Sized {
    type Signed;

    // Required methods
    fn into_positive(self) -> Self::Signed;
    fn into_negative(self) -> Self::Signed;

    // Provided method
    fn into_signed(self, sign: i32) -> Self::Signed { ... }
}
Expand description

A trait implemented on unsigned types which can be converted into crate::Signeds.

Required Associated Types§

Required Methods§

source

fn into_positive(self) -> Self::Signed

Converts self into a Signed::Positive.

source

fn into_negative(self) -> Self::Signed

Converts self into a Signed::Negative.

Provided Methods§

source

fn into_signed(self, sign: i32) -> Self::Signed

Converts self into a Signed matching the given sign.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl UnsignedIntoSigned for Option<u32>

source§

impl UnsignedIntoSigned for Option<u64>

source§

impl UnsignedIntoSigned for Option<usize>

source§

impl UnsignedIntoSigned for Option<Buffers>

source§

impl UnsignedIntoSigned for Option<Bytes>

source§

impl UnsignedIntoSigned for Option<ClockTime>

source§

impl UnsignedIntoSigned for Option<Default>

source§

impl UnsignedIntoSigned for Option<Other>

source§

impl UnsignedIntoSigned for Option<Percent>

source§

impl UnsignedIntoSigned for u32

§

type Signed = Signed<u32>

source§

fn into_positive(self) -> Self::Signed

source§

fn into_negative(self) -> Self::Signed

source§

impl UnsignedIntoSigned for u64

§

type Signed = Signed<u64>

source§

fn into_positive(self) -> Self::Signed

source§

fn into_negative(self) -> Self::Signed

source§

impl UnsignedIntoSigned for usize

Implementors§