Skip to main content

RectMut

Struct RectMut 

Source
pub struct RectMut<'s> { /* private fields */ }

Implementations§

Source§

impl<'s> RectMut<'s>

Source

pub fn kind(&self) -> Type

Source§

impl<'s> RectMut<'s>

Source

pub fn flags(&self) -> Flags

Source§

impl<'s> RectMut<'s>

Source

pub fn x(&self) -> usize

Source§

impl<'s> RectMut<'s>

Source

pub fn y(&self) -> usize

Source§

impl<'s> RectMut<'s>

Source

pub fn width(&self) -> u32

Source§

impl<'s> RectMut<'s>

Source

pub fn height(&self) -> u32

Source§

impl<'s> RectMut<'s>

Source

pub fn colors(&self) -> usize

Source§

impl<'s> RectMut<'s>

Source

pub fn text(&self) -> Option<&str>

Source§

impl<'s> RectMut<'s>

Source

pub fn ass(&self) -> Option<&str>

Source§

impl<'s> RectMut<'s>

Source

pub unsafe fn from_ptr(ptr: NonNull<AVSubtitleRect>) -> Self

§Safety

ptr must be a valid pointer to an AVSubtitleRect. Ensure that the returned lifetime is correctly bounded.

Source

pub fn as_ref(&self) -> RectRef<'s>

Source

pub fn set_flags(&mut self, flags: Flags)

Source

pub fn set_x(&mut self, value: usize)

Source

pub fn set_y(&mut self, value: usize)

Source

pub fn set_width(&mut self, value: u32)

Source

pub fn set_height(&mut self, value: u32)

Source

pub fn set_colors(&mut self, value: usize)

Source

pub fn set_text(&mut self, value: &str)

Source

pub fn set_ass(&mut self, value: &str)

Trait Implementations§

Source§

impl<'s> AsMutPtr<AVSubtitleRect> for RectMut<'s>

Source§

fn as_mut_ptr(&mut self) -> *mut AVSubtitleRect

Returns a *mut raw pointer to the underlying FFmpeg type.
Source§

impl<'s> AsPtr<AVSubtitleRect> for RectMut<'s>

Source§

fn as_ptr(&self) -> *const AVSubtitleRect

Returns a *const raw pointer to the underlying FFmpeg type.

Auto Trait Implementations§

§

impl<'s> !Send for RectMut<'s>

§

impl<'s> !Sync for RectMut<'s>

§

impl<'s> !UnwindSafe for RectMut<'s>

§

impl<'s> Freeze for RectMut<'s>

§

impl<'s> RefUnwindSafe for RectMut<'s>

§

impl<'s> Unpin for RectMut<'s>

§

impl<'s> UnsafeUnpin for RectMut<'s>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

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

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

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

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

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.