Struct cairo::TextExtents
source · [−]#[repr(C)]pub struct TextExtents {
pub x_bearing: f64,
pub y_bearing: f64,
pub width: f64,
pub height: f64,
pub x_advance: f64,
pub y_advance: f64,
}
Fields
x_bearing: f64
y_bearing: f64
width: f64
height: f64
x_advance: f64
y_advance: f64
Trait Implementations
sourceimpl Clone for TextExtents
impl Clone for TextExtents
sourcepub fn clone(&self) -> TextExtents
pub fn clone(&self) -> TextExtents
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for TextExtents
impl Debug for TextExtents
impl Copy for TextExtents
Auto Trait Implementations
impl RefUnwindSafe for TextExtents
impl Send for TextExtents
impl Sync for TextExtents
impl Unpin for TextExtents
impl UnwindSafe for TextExtents
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more