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::Signed
s.
Required Associated Types§
Required Methods§
sourcefn into_positive(self) -> Self::Signed
fn into_positive(self) -> Self::Signed
Converts self
into a Signed::Positive
.
sourcefn into_negative(self) -> Self::Signed
fn into_negative(self) -> Self::Signed
Converts self
into a Signed::Negative
.
Provided Methods§
sourcefn into_signed(self, sign: i32) -> Self::Signed
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.