Platform

Enum Platform 

Source
pub enum Platform {}
Expand description

Non-constructable type that implements the platform trait for iOS.

Trait Implementations§

Source§

impl Builtin<Platform> for Builtin

Source§

fn instantiate( &self, _parent: &mut OpaqueContainer, environment: &mut Environment, ) -> OpaqueContainer

Source§

fn update(&self, container: &mut OpaqueContainer, environment: &mut Environment)

Source§

impl CommandBuffer<Platform> for CommandBuffer

Source§

fn mount<F>(&mut self, parent_id: ContainerID, initializer: F) -> ContainerID
where F: FnOnce(&mut OpaqueContainer, &mut Environment) -> OpaqueContainer + Send + 'static,

This function initializes a new container by running the given initializer on the UI thread and mounts it to the given parent by invoking the parent’s mounting function (see Container::Mount).
Source§

fn mutate<F>(&mut self, ids: &[ContainerID], mutator: F)
where F: FnOnce(&mut [&mut OpaqueContainer], &mut Environment) + Send + 'static,

Source§

fn unmount(&mut self, id: ContainerID)

Source§

fn layout(&mut self)

Source§

fn commit(self)

Source§

impl Component<Platform> for OpaqueComponent

Source§

fn render(&self, manager: &mut Manager<'_>) -> Element

Source§

impl Compositor<Platform> for Compositor

Source§

impl Container<Platform> for OpaqueContainer

Source§

fn mount( &mut self, container: &mut OpaqueContainer, environment: &mut Environment, )

Source§

fn unmount(&mut self)

Source§

impl Platform for Platform

Source§

type CommandBuffer = CommandBuffer

Source§

type Component = OpaqueComponent

Source§

type Compositor = Compositor

Source§

type Container = OpaqueContainer

This is a native container that renders a built-in. For example, this can be an UIView or a div. Native containers are usually not thread-safe and reside only on the main thread.
Source§

type ContainerID = ContainerID

This is a virtual container that renders a built-in. These containers should be thread-safe (e.g. Send + Sync).
Source§

type Environment = Environment

Source§

fn with_compositor<F>(container: Self::Container, task: F) -> Disposable
where F: FnOnce(Self::ContainerID, Self::Compositor, EventLoop) -> Disposable + Send + 'static,

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S
where T: Component + Float, Swp: WhitePoint, Dwp: WhitePoint, D: AdaptFrom<S, Swp, Dwp, T>,

Source§

fn adapt_into_using<M>(self, method: M) -> D
where M: TransformMatrix<Swp, Dwp, T>,

Convert the source color to the destination color using the specified method
Source§

fn adapt_into(self) -> D

Convert the source color to the destination color using the bradford method by default
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> AsAny for T
where T: Any,

Source§

fn as_any(&self) -> &(dyn Any + 'static)

Source§

fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)

Source§

fn type_name(&self) -> &'static str

Gets the type name of self
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, U> ConvertInto<U> for T
where U: ConvertFrom<T>,

Source§

fn convert_into(self) -> U

Convert into T with values clamped to the color defined bounds Read more
Source§

fn convert_unclamped_into(self) -> U

Convert into T. The resulting color might be invalid in its color space Read more
Source§

fn try_convert_into(self) -> Result<U, OutOfBounds<U>>

Convert into T, returning ok if the color is inside of its defined range, otherwise an OutOfBounds error is returned which contains the unclamped color. Read more
Source§

impl<'a, T> Desc<'a, T> for T

Source§

fn lookup(self, _: &JNIEnv<'a>) -> Result<T, Error>

Look up the concrete type from the JVM.
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.