[−][src]Enum kludgine::prelude::Dimension
Variants
Scale-corrected to the users preference of DPI
Implementations
impl<Unit> Dimension<Unit>
[src]
pub fn from_f32(value: f32) -> Self
[src]
pub fn from_length<V: Into<Length<f32, Unit>>>(value: V) -> Self
[src]
pub fn is_auto(&self) -> bool
[src]
pub fn is_length(&self) -> bool
[src]
pub fn length(&self) -> Option<Length<f32, Unit>>
[src]
Trait Implementations
impl<Unit: Clone> Clone for Dimension<Unit>
[src]
impl<Unit: Copy> Copy for Dimension<Unit>
[src]
impl<Unit: Debug> Debug for Dimension<Unit>
[src]
impl<Unit> Default for Dimension<Unit>
[src]
impl<'de, Unit> Deserialize<'de> for Dimension<Unit> where
Unit: Deserialize<'de>,
[src]
Unit: Deserialize<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl<Unit> From<Length<f32, Unit>> for Dimension<Unit>
[src]
impl<Unit: PartialEq> PartialEq<Dimension<Unit>> for Dimension<Unit>
[src]
fn eq(&self, other: &Dimension<Unit>) -> bool
[src]
fn ne(&self, other: &Dimension<Unit>) -> bool
[src]
impl<Unit> Serialize for Dimension<Unit> where
Unit: Serialize,
[src]
Unit: Serialize,
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<Unit> StructuralPartialEq for Dimension<Unit>
[src]
Auto Trait Implementations
impl<Unit> RefUnwindSafe for Dimension<Unit> where
Unit: RefUnwindSafe,
Unit: RefUnwindSafe,
impl<Unit> Send for Dimension<Unit> where
Unit: Send,
Unit: Send,
impl<Unit> Sync for Dimension<Unit> where
Unit: Sync,
Unit: Sync,
impl<Unit> Unpin for Dimension<Unit> where
Unit: Unpin,
Unit: Unpin,
impl<Unit> UnwindSafe for Dimension<Unit> where
Unit: UnwindSafe,
Unit: UnwindSafe,
Blanket Implementations
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
D: AdaptFrom<S, Swp, Dwp, T>,
Dwp: WhitePoint,
Swp: WhitePoint,
T: Component + Float,
[src]
D: AdaptFrom<S, Swp, Dwp, T>,
Dwp: WhitePoint,
Swp: WhitePoint,
T: Component + Float,
fn adapt_into_using<M>(self, method: M) -> D where
M: TransformMatrix<Swp, Dwp, T>,
[src]
M: TransformMatrix<Swp, Dwp, T>,
fn adapt_into(self) -> D
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Component for T where
T: 'static + Send + Sync,
[src]
T: 'static + Send + Sync,
type Storage = PackedStorage<T>
The storage type required to hold all instances of this component in a world.
impl<T, U> ConvertInto<U> for T where
U: ConvertFrom<T>,
[src]
U: ConvertFrom<T>,
fn convert_into(self) -> U
[src]
fn convert_unclamped_into(self) -> U
[src]
fn try_convert_into(self) -> Result<U, OutOfBounds<U>>
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> Downcast for T where
T: Any,
T: Any,
fn into_any(self: Box<T>) -> Box<dyn Any + 'static>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
fn as_any(&self) -> &(dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
impl<T> DowncastSync for T where
T: Send + Sync + Any,
T: Send + Sync + Any,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Resource for T where
T: 'static,
[src]
T: 'static,
impl<T> Serialize for T where
T: Serialize + ?Sized,
[src]
T: Serialize + ?Sized,
fn erased_serialize(&self, serializer: &mut dyn Serializer) -> Result<Ok, Error>
[src]
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,