#[repr(C)]pub struct AVCaptionDimension {
pub value: CGFloat,
pub units: AVCaptionUnitsType,
}Available on crate features
AVCaption and objc2-core-foundation only.Expand description
The length with a unit or coordinate on a 2D geometric axis Field: value The value of the coordinate or length. Field: units The units of the coordinate (e.g., cells, points)
See also Apple’s documentation
Fields§
§value: CGFloat§units: AVCaptionUnitsTypeImplementations§
Source§impl AVCaptionDimension
impl AVCaptionDimension
Sourcepub unsafe fn new(
value: CGFloat,
units: AVCaptionUnitsType,
) -> AVCaptionDimension
pub unsafe fn new( value: CGFloat, units: AVCaptionUnitsType, ) -> AVCaptionDimension
Makes an AVCaptionDimension from a value and units.
Trait Implementations§
Source§impl Clone for AVCaptionDimension
impl Clone for AVCaptionDimension
Source§fn clone(&self) -> AVCaptionDimension
fn clone(&self) -> AVCaptionDimension
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AVCaptionDimension
impl Debug for AVCaptionDimension
Source§impl Encode for AVCaptionDimension
impl Encode for AVCaptionDimension
Source§impl PartialEq for AVCaptionDimension
impl PartialEq for AVCaptionDimension
Source§impl RefEncode for AVCaptionDimension
impl RefEncode for AVCaptionDimension
Source§const ENCODING_REF: Encoding
const ENCODING_REF: Encoding
The Objective-C type-encoding for a reference of this type. Read more
impl Copy for AVCaptionDimension
impl StructuralPartialEq for AVCaptionDimension
Auto Trait Implementations§
impl Freeze for AVCaptionDimension
impl RefUnwindSafe for AVCaptionDimension
impl Send for AVCaptionDimension
impl Sync for AVCaptionDimension
impl Unpin for AVCaptionDimension
impl UnwindSafe for AVCaptionDimension
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> EncodeArgument for Twhere
T: Encode,
impl<T> EncodeArgument for Twhere
T: Encode,
Source§const ENCODING_ARGUMENT: Encoding = T::ENCODING
const ENCODING_ARGUMENT: Encoding = T::ENCODING
The Objective-C type-encoding for this type.
Source§impl<T> EncodeReturn for Twhere
T: Encode,
impl<T> EncodeReturn for Twhere
T: Encode,
Source§const ENCODING_RETURN: Encoding = T::ENCODING
const ENCODING_RETURN: Encoding = T::ENCODING
The Objective-C type-encoding for this type.