Enum NeverShape

Source
pub enum NeverShape {}
Expand description

A shape type that can never be constructed.

Trait Implementations§

Auto Trait Implementations§

Blanket Implementations§

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> Bind for T
where T: Shape,

Source§

fn bind(&self, _context: &Context)

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> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> IdentifyExt for T

Source§

fn identify(self, id: impl Into<Id>) -> Identified<T>

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> ShapeExt for T
where T: Shape,

Source§

fn fill(self, style: impl Into<Style>) -> Fill<Self>

Source§

fn stroke(self, style: impl Into<Style>) -> Stroke<Self>

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.
Source§

impl<T> View for T
where T: Shape,

Source§

fn fire(&self, _event: &Event, _id_path: &IdPath, _context: &Context)

Source§

fn render(&self, _context: &Context) -> Node

Source§

type Body = NeverView

Source§

fn body(&self) -> Self::Body

Source§

impl<T> ViewExt for T
where T: View,

Source§

fn modifier(self, modifier: ModifierNode) -> Modified<Self>

Source§

fn gesture<G>(self, gesture: G) -> Gestured<Self, G>
where G: Gesture,

Source§

fn on_taps<F>(self, count: usize, action: F) -> Gestured<Self, TapGesture<F>>
where F: Fn(),

Source§

fn on_tap<F>(self, action: F) -> Gestured<Self, TapGesture<F>>
where F: Fn(),

Source§

fn on_drag_by<F>( self, minimum_distance: impl Into<f64>, action: F, ) -> Gestured<Self, DragGesture<F>>
where F: Fn(&DragEvent),

Source§

fn on_drag<F>(self, action: F) -> Gestured<Self, DragGesture<F>>
where F: Fn(&DragEvent),

Source§

fn overlay_at<O>(self, alignment: Alignment, overlayed: O) -> Overlay<Self, O>
where O: View,

Source§

fn overlay<O>(self, overlayed: O) -> Overlay<Self, O>
where O: View,

Source§

fn padding(self, insets: impl Into<Insets>) -> Modified<Self>

Source§

fn position(self, position: Vec2<f64>) -> Modified<Self>

Source§

fn offset(self, delta: Vec2<f64>) -> Modified<Self>

Source§

fn opacity(self, opacity: impl Into<f64>) -> Modified<Self>

Source§

fn frame_with( self, alignment: Alignment, frame: impl Into<Frame>, ) -> Modified<Self>

Source§

fn frame(self, frame: impl Into<Frame>) -> Modified<Self>

Source§

fn font(self, font: impl Into<Font>) -> Modified<Self>

Source§

fn foreground_style(self, style: impl Into<Style>) -> Modified<Self>

Source§

fn scale_effect_around( self, anchor: UnitPoint, factor: impl Into<f64>, ) -> Modified<Self>

Source§

fn scale_effect(self, factor: impl Into<f64>) -> Modified<Self>

Source§

fn rotation_effect_around( self, anchor: UnitPoint, angle: impl Into<Angle>, ) -> Modified<Self>

Source§

fn rotation_effect(self, angle: impl Into<Angle>) -> Modified<Self>

Source§

fn on_appear(self, action: impl Fn() + 'static) -> Handler<Self, impl Fn(Event)>

Source§

fn on_disappear( self, action: impl Fn() + 'static, ) -> Handler<Self, impl Fn(Event)>