pub struct Translate<T>(pub T)
where
T: Clone + Debug + Display + PartialEq + UnitDataType<Self>;Expand description
Tuple Fields§
§0: TImplementations§
Trait Implementations§
Source§impl AbsoluteLengthStorage for Translate<TranslateValue>
impl AbsoluteLengthStorage for Translate<TranslateValue>
fn absolute_length(value: AbsoluteLength) -> Selfwhere
Self: Sized,
Source§impl CapHeightStorage for Translate<TranslateValue>
impl CapHeightStorage for Translate<TranslateValue>
Source§impl CentimeterStorage for Translate<TranslateValue>
impl CentimeterStorage for Translate<TranslateValue>
Source§impl CharSizeStorage for Translate<TranslateValue>
impl CharSizeStorage for Translate<TranslateValue>
Source§impl ContainerLengthStorage for Translate<TranslateValue>
impl ContainerLengthStorage for Translate<TranslateValue>
fn container_length(value: ContainerLength) -> Selfwhere
Self: Sized,
Source§impl Default for Translate<TranslateValue>
impl Default for Translate<TranslateValue>
Source§impl EmStorage for Translate<TranslateValue>
impl EmStorage for Translate<TranslateValue>
Source§impl ExStorage for Translate<TranslateValue>
impl ExStorage for Translate<TranslateValue>
Source§impl FontLengthStorage for Translate<TranslateValue>
impl FontLengthStorage for Translate<TranslateValue>
fn font_length(value: FontLength) -> Selfwhere
Self: Sized,
Source§impl<T> From<T> for Translate<TranslateValue>where
T: Into<LengthPercentage>,
impl<T> From<T> for Translate<TranslateValue>where
T: Into<LengthPercentage>,
Source§impl IcStorage for Translate<TranslateValue>
impl IcStorage for Translate<TranslateValue>
Source§impl InchStorage for Translate<TranslateValue>
impl InchStorage for Translate<TranslateValue>
Source§impl LengthPercentageStorage for Translate<TranslateValue>
impl LengthPercentageStorage for Translate<TranslateValue>
fn length_percentage(value: LengthPercentage) -> Selfwhere
Self: Sized,
Source§impl LengthStorage for Translate<TranslateValue>
impl LengthStorage for Translate<TranslateValue>
Source§impl LineHeightStorage for Translate<TranslateValue>
impl LineHeightStorage for Translate<TranslateValue>
Source§impl MillimeterStorage for Translate<TranslateValue>
impl MillimeterStorage for Translate<TranslateValue>
Source§impl PercentageStorage for Translate<TranslateValue>
impl PercentageStorage for Translate<TranslateValue>
Source§impl PicaStorage for Translate<TranslateValue>
impl PicaStorage for Translate<TranslateValue>
Source§impl PixelStorage for Translate<TranslateValue>
impl PixelStorage for Translate<TranslateValue>
Source§impl PointStorage for Translate<TranslateValue>
impl PointStorage for Translate<TranslateValue>
Source§impl<T> Property for Translate<T>
impl<T> Property for Translate<T>
Source§fn declaration(&self) -> String
fn declaration(&self) -> String
Returns the stringified property name with its value
as a CSS declaration to be used within a declaration block. Read more
Source§impl<T> PropertyName for Translate<T>
impl<T> PropertyName for Translate<T>
fn property_name<'a>(&self) -> &'a str
Source§impl RelativeEmStorage for Translate<TranslateValue>
impl RelativeEmStorage for Translate<TranslateValue>
Source§impl RelativeExStorage for Translate<TranslateValue>
impl RelativeExStorage for Translate<TranslateValue>
Source§impl RelativeIcStorage for Translate<TranslateValue>
impl RelativeIcStorage for Translate<TranslateValue>
Source§impl RelativeLengthStorage for Translate<TranslateValue>
impl RelativeLengthStorage for Translate<TranslateValue>
fn relative_length(value: RelativeLength) -> Selfwhere
Self: Sized,
Source§impl ViewportLengthStorage for Translate<TranslateValue>
impl ViewportLengthStorage for Translate<TranslateValue>
fn viewport_length(value: ViewportLength) -> Selfwhere
Self: Sized,
Source§impl ViewportMaxStorage for Translate<TranslateValue>
impl ViewportMaxStorage for Translate<TranslateValue>
Source§impl ViewportMinStorage for Translate<TranslateValue>
impl ViewportMinStorage for Translate<TranslateValue>
impl<T> StructuralPartialEq for Translate<T>
impl UnitDataType<Translate<Nothing>> for Nothing
impl UnitDataType<Translate<TranslateValue>> for TranslateValue
impl<T> UnitDataType<Translate<Var<T>>> for Var<T>
impl<T> UnitDataTypeContainer<T> for Translate<T>
Auto Trait Implementations§
impl<T> Freeze for Translate<T>where
T: Freeze,
impl<T> RefUnwindSafe for Translate<T>where
T: RefUnwindSafe,
impl<T> Send for Translate<T>where
T: Send,
impl<T> Sync for Translate<T>where
T: Sync,
impl<T> Unpin for Translate<T>where
T: Unpin,
impl<T> UnwindSafe for Translate<T>where
T: UnwindSafe,
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