Struct gst::Caps [−][src]
pub struct Caps { /* fields omitted */ }
Methods
impl Caps
[src]
impl Caps
pub unsafe fn new(caps: *mut GstCaps) -> Option<Caps>
[src]
pub unsafe fn new(caps: *mut GstCaps) -> Option<Caps>
pub fn new_empty() -> Caps
[src]
pub fn new_empty() -> Caps
pub fn new_empty_simple(media_type: &str) -> Caps
[src]
pub fn new_empty_simple(media_type: &str) -> Caps
pub fn new_any() -> Caps
[src]
pub fn new_any() -> Caps
pub fn is_writable(&self) -> bool
[src]
pub fn is_writable(&self) -> bool
pub fn from_string(desc: &str) -> Option<Caps>
[src]
pub fn from_string(desc: &str) -> Option<Caps>
pub fn to_string(&self) -> &str
[src]
pub fn to_string(&self) -> &str
pub fn video_info(&self) -> Option<VideoInfo>
[src]
pub fn video_info(&self) -> Option<VideoInfo>
pub unsafe fn gst_caps(&self) -> *const GstCaps
[src]
pub unsafe fn gst_caps(&self) -> *const GstCaps
pub unsafe fn gst_caps_mut(&mut self) -> *mut GstCaps
[src]
pub unsafe fn gst_caps_mut(&mut self) -> *mut GstCaps
pub fn structure(&self, index: u32) -> Option<Structure>
[src]
pub fn structure(&self, index: u32) -> Option<Structure>
Methods from Deref<Target = MiniObject>
pub fn lock<F: FnMut(&mut MiniObject)>(
&mut self,
flags: &[LockFlags],
f: F
) -> bool
[src]
pub fn lock<F: FnMut(&mut MiniObject)>(
&mut self,
flags: &[LockFlags],
f: F
) -> bool
pub unsafe fn gst_miniobject(&self) -> *const GstMiniObject
[src]
pub unsafe fn gst_miniobject(&self) -> *const GstMiniObject
pub unsafe fn gst_miniobject_mut(&mut self) -> *mut GstMiniObject
[src]
pub unsafe fn gst_miniobject_mut(&mut self) -> *mut GstMiniObject
Trait Implementations
impl Clone for Caps
[src]
impl Clone for Caps
fn clone(&self) -> Caps
[src]
fn clone(&self) -> Caps
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Transfer<GstCaps> for Caps
[src]
impl Transfer<GstCaps> for Caps
unsafe fn transfer(self) -> *mut GstCaps
[src]
unsafe fn transfer(self) -> *mut GstCaps
Consumes the current object and transfers ownership of the raw pointer Used to transfer ownership to ffi functions, should be used when an ffi function expects full transfer of an object to avoid the original object to be unreferenced in the process Read more
impl Reference for Caps
[src]
impl Reference for Caps
impl PartialEq for Caps
[src]
impl PartialEq for Caps
fn eq(&self, other: &Caps) -> bool
[src]
fn eq(&self, other: &Caps) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]This method tests for !=
.
impl Eq for Caps
[src]
impl Eq for Caps
impl AsRef<MiniObject> for Caps
[src]
impl AsRef<MiniObject> for Caps
fn as_ref(&self) -> &MiniObject
[src]
fn as_ref(&self) -> &MiniObject
Performs the conversion.
impl AsMut<MiniObject> for Caps
[src]
impl AsMut<MiniObject> for Caps
fn as_mut(&mut self) -> &mut MiniObject
[src]
fn as_mut(&mut self) -> &mut MiniObject
Performs the conversion.
impl From<Caps> for MiniObject
[src]
impl From<Caps> for MiniObject
fn from(b: Caps) -> MiniObject
[src]
fn from(b: Caps) -> MiniObject
Performs the conversion.
impl Deref for Caps
[src]
impl Deref for Caps
type Target = MiniObject
The resulting type after dereferencing.
fn deref(&self) -> &MiniObject
[src]
fn deref(&self) -> &MiniObject
Dereferences the value.
impl DerefMut for Caps
[src]
impl DerefMut for Caps
fn deref_mut(&mut self) -> &mut MiniObject
[src]
fn deref_mut(&mut self) -> &mut MiniObject
Mutably dereferences the value.