Struct RwSignal

Source
pub struct RwSignal<T> { /* private fields */ }
Expand description

A read write Signal which can act as both a Getter and a Setter

Implementations§

Source§

impl<T> RwSignal<T>

Source

pub fn read_only(&self) -> ReadSignal<T>

Create a Getter of this Signal

Source

pub fn write_only(&self) -> WriteSignal<T>

Create a Setter of this Signal

Source§

impl<T> RwSignal<T>
where T: 'static,

Source

pub fn new(value: T) -> RwSignal<T>

Source

pub fn new_split(value: T) -> (ReadSignal<T>, WriteSignal<T>)

Trait Implementations§

Source§

impl<T> Add<T> for RwSignal<T>
where T: 'static + Add<Output = T>, &'a T: for<'a> Add<T, Output = T>,

Source§

type Output = T

The resulting type after applying the + operator.
Source§

fn add(self, rhs: T) -> <RwSignal<T> as Add<T>>::Output

Performs the + operation. Read more
Source§

impl<T> AddAssign<T> for RwSignal<T>
where T: AddAssign + 'static,

Source§

fn add_assign(&mut self, rhs: T)

Performs the += operation. Read more
Source§

impl<T> BitAnd<T> for RwSignal<T>
where T: 'static + BitAnd<Output = T>, &'a T: for<'a> BitAnd<T, Output = T>,

Source§

type Output = T

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: T) -> <RwSignal<T> as BitAnd<T>>::Output

Performs the & operation. Read more
Source§

impl<T> BitAndAssign<T> for RwSignal<T>
where T: BitAndAssign + 'static,

Source§

fn bitand_assign(&mut self, rhs: T)

Performs the &= operation. Read more
Source§

impl<T> BitOr<T> for RwSignal<T>
where T: 'static + BitOr<Output = T>, &'a T: for<'a> BitOr<T, Output = T>,

Source§

type Output = T

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: T) -> <RwSignal<T> as BitOr<T>>::Output

Performs the | operation. Read more
Source§

impl<T> BitOrAssign<T> for RwSignal<T>
where T: BitOrAssign + 'static,

Source§

fn bitor_assign(&mut self, rhs: T)

Performs the |= operation. Read more
Source§

impl<T> BitXor<T> for RwSignal<T>
where T: 'static + BitXor<Output = T>, &'a T: for<'a> BitXor<T, Output = T>,

Source§

type Output = T

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: T) -> <RwSignal<T> as BitXor<T>>::Output

Performs the ^ operation. Read more
Source§

impl<T> BitXorAssign<T> for RwSignal<T>
where T: BitXorAssign + 'static,

Source§

fn bitxor_assign(&mut self, rhs: T)

Performs the ^= operation. Read more
Source§

impl<T> Clone for RwSignal<T>

Source§

fn clone(&self) -> RwSignal<T>

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<T> Debug for RwSignal<T>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl<T> Display for RwSignal<T>
where T: Display + 'static,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl<T> Div<T> for RwSignal<T>
where T: 'static + Div<Output = T>, &'a T: for<'a> Div<T, Output = T>,

Source§

type Output = T

The resulting type after applying the / operator.
Source§

fn div(self, rhs: T) -> <RwSignal<T> as Div<T>>::Output

Performs the / operation. Read more
Source§

impl<T> DivAssign<T> for RwSignal<T>
where T: DivAssign + 'static,

Source§

fn div_assign(&mut self, rhs: T)

Performs the /= operation. Read more
Source§

impl<T: IntoView + Clone + 'static> IntoView for RwSignal<T>

Source§

type V = DynamicView

Source§

fn into_view(self) -> Self::V

Converts the value into a View.
Source§

fn into_any(self) -> AnyView

Converts the value into a AnyView.
Source§

impl<T> Mul<T> for RwSignal<T>
where T: 'static + Mul<Output = T>, &'a T: for<'a> Mul<T, Output = T>,

Source§

type Output = T

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: T) -> <RwSignal<T> as Mul<T>>::Output

Performs the * operation. Read more
Source§

impl<T> MulAssign<T> for RwSignal<T>
where T: MulAssign + 'static,

Source§

fn mul_assign(&mut self, rhs: T)

Performs the *= operation. Read more
Source§

impl<T> Neg for RwSignal<T>
where T: 'static, &'a T: for<'a> Neg<Output = T>,

Source§

type Output = T

The resulting type after applying the - operator.
Source§

fn neg(self) -> <RwSignal<T> as Neg>::Output

Performs the unary - operation. Read more
Source§

impl<T> Not for RwSignal<T>
where T: 'static, &'a T: for<'a> Not<Output = T>,

Source§

type Output = T

The resulting type after applying the ! operator.
Source§

fn not(self) -> <RwSignal<T> as Not>::Output

Performs the unary ! operation. Read more
Source§

impl<T> PartialEq<T> for RwSignal<T>
where T: PartialEq + 'static,

Source§

fn eq(&self, other: &T) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<T> PartialEq for RwSignal<T>

Source§

fn eq(&self, other: &RwSignal<T>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<T> Rem<T> for RwSignal<T>
where T: 'static + Rem<Output = T>, &'a T: for<'a> Rem<T, Output = T>,

Source§

type Output = T

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: T) -> <RwSignal<T> as Rem<T>>::Output

Performs the % operation. Read more
Source§

impl<T> RemAssign<T> for RwSignal<T>
where T: RemAssign + 'static,

Source§

fn rem_assign(&mut self, rhs: T)

Performs the %= operation. Read more
Source§

impl<T> Shl<T> for RwSignal<T>
where T: 'static + Shl<Output = T>, &'a T: for<'a> Shl<T, Output = T>,

Source§

type Output = T

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: T) -> <RwSignal<T> as Shl<T>>::Output

Performs the << operation. Read more
Source§

impl<T> ShlAssign<T> for RwSignal<T>
where T: ShlAssign + 'static,

Source§

fn shl_assign(&mut self, rhs: T)

Performs the <<= operation. Read more
Source§

impl<T> Shr<T> for RwSignal<T>
where T: 'static + Shr<Output = T>, &'a T: for<'a> Shr<T, Output = T>,

Source§

type Output = T

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: T) -> <RwSignal<T> as Shr<T>>::Output

Performs the >> operation. Read more
Source§

impl<T> ShrAssign<T> for RwSignal<T>
where T: ShrAssign + 'static,

Source§

fn shr_assign(&mut self, rhs: T)

Performs the >>= operation. Read more
Source§

impl<T> SignalGet<T> for RwSignal<T>
where T: Clone,

Source§

fn id(&self) -> Id

get the Signal Id
Source§

fn get_untracked(&self) -> T
where T: 'static,

Clones and returns the current value stored in the Signal, but it doesn’t subscribe to the current running effect.
Source§

fn get(&self) -> T
where T: 'static,

Clones and returns the current value stored in the Signal, and subscribes to the current running effect to this Signal.
Source§

fn try_get(&self) -> Option<T>
where T: 'static,

Try to clone and return the current value stored in the Signal, and returns None if it’s already disposed. It subscribes to the current running effect.
Source§

fn try_get_untracked(&self) -> Option<T>
where T: 'static,

Try to clone and return the current value stored in the Signal, and returns None if it’s already disposed. It doesn’t subscribe to the current running effect.
Source§

impl<T> SignalRead<T> for RwSignal<T>

Source§

fn id(&self) -> Id

get the Signal Id
Source§

fn read(&self) -> ReadSignalValue<T>
where T: 'static,

Reads the data stored in the Signal to a RefCell, so that you can borrow() and access the data. It subscribes to the current running effect.
Source§

fn read_untracked(&self) -> ReadSignalValue<T>
where T: 'static,

Reads the data stored in the Signal to a RefCell, so that you can borrow() and access the data. It doesn’t subscribe to the current running effect.
Source§

fn try_read(&self) -> Option<ReadSignalValue<T>>
where T: 'static,

If the signal isn’t disposed, reads the data stored in the Signal to a RefCell, so that you can borrow() and access the data. It subscribes to the current running effect.
Source§

fn try_read_untracked(&self) -> Option<ReadSignalValue<T>>
where T: 'static,

If the signal isn’t disposed, reads the data stored in the Signal to a RefCell, so that you can borrow() and access the data. It doesn’t subscribe to the current running effect.
Source§

impl<T> SignalTrack<T> for RwSignal<T>

Source§

fn id(&self) -> Id

Source§

fn track(&self)

Only subscribes to the current running effect to this Signal.
Source§

fn try_track(&self)

If the signal isn’t disposed,
Source§

impl<T> SignalUpdate<T> for RwSignal<T>

Source§

fn id(&self) -> Id

get the Signal Id
Source§

fn set(&self, new_value: T)
where T: 'static,

Sets the new_value to the Signal and triggers effect run
Source§

fn update(&self, f: impl FnOnce(&mut T))
where T: 'static,

Update the stored value with the given function and triggers effect run
Source§

fn try_update<O>(&self, f: impl FnOnce(&mut T) -> O) -> Option<O>
where T: 'static,

Update the stored value with the given function, triggers effect run, and returns the value returned by the function
Source§

impl<T> SignalWith<T> for RwSignal<T>

Source§

fn id(&self) -> Id

get the Signal Id
Source§

fn with<O>(&self, f: impl FnOnce(&T) -> O) -> O
where T: 'static,

Applies a closure to the current value stored in the Signal, and subscribes to the current running effect to this Memo.
Source§

fn with_untracked<O>(&self, f: impl FnOnce(&T) -> O) -> O
where T: 'static,

Applies a closure to the current value stored in the Signal, but it doesn’t subscribe to the current running effect.
Source§

fn try_with<O>(&self, f: impl FnOnce(Option<&T>) -> O) -> O
where T: 'static,

If the signal isn’t disposed, applies a closure to the current value stored in the Signal. It subscribes to the current running effect.
Source§

fn try_with_untracked<O>(&self, f: impl FnOnce(Option<&T>) -> O) -> O
where T: 'static,

If the signal isn’t disposed, applies a closure to the current value stored in the Signal, but it doesn’t subscribe to the current running effect.
Source§

impl<T> SignalWrite<T> for RwSignal<T>

Source§

fn id(&self) -> Id

get the Signal Id
Source§

fn write(&self) -> WriteSignalValue<T>
where T: 'static,

Convert the Signal to WriteSignalValue where it holds a RefCell wrapped original data of the signal, so that you can borrow_mut() to update the data. Read more
Source§

fn try_write(&self) -> Option<WriteSignalValue<T>>
where T: 'static,

If the Signal isn’t disposed, convert the Signal to WriteSignalValue where it holds a RefCell wrapped original data of the signal, so that you can borrow_mut() to update the data. Read more
Source§

impl<T> Sub<T> for RwSignal<T>
where T: 'static + Sub<Output = T>, &'a T: for<'a> Sub<T, Output = T>,

Source§

type Output = T

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: T) -> <RwSignal<T> as Sub<T>>::Output

Performs the - operation. Read more
Source§

impl<T> SubAssign<T> for RwSignal<T>
where T: SubAssign + 'static,

Source§

fn sub_assign(&mut self, rhs: T)

Performs the -= operation. Read more
Source§

impl<T> Copy for RwSignal<T>

Source§

impl<T> Eq for RwSignal<T>

Auto Trait Implementations§

§

impl<T> Freeze for RwSignal<T>

§

impl<T> RefUnwindSafe for RwSignal<T>
where T: RefUnwindSafe,

§

impl<T> Send for RwSignal<T>
where T: Send,

§

impl<T> Sync for RwSignal<T>
where T: Sync,

§

impl<T> Unpin for RwSignal<T>
where T: Unpin,

§

impl<T> UnwindSafe for RwSignal<T>
where T: UnwindSafe,

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> 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> ButtonExt for T
where T: IntoView + 'static,

Source§

impl<T> ClipExt for T
where T: IntoView + 'static,

Source§

fn clip(self) -> Clip

Wrap the view in a clip view.
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
Source§

impl<T> ContainerExt for T
where T: IntoView + 'static,

Source§

fn container(self) -> Container

Wrap the view in a container.
Source§

impl<VW, IV> Decorators for IV
where VW: View, IV: IntoView<V = VW>,

Source§

type DV = VW

The type of the decorated view. Read more
Source§

fn style(self, style: impl Fn(Style) -> Style + 'static) -> Self::DV

Alter the style of the view. Read more
Source§

fn debug_name(self, name: impl Into<String>) -> Self::DV

Add a debug name to the view that will be shown in the inspector. Read more
Source§

fn debug_name_if<S: Into<String>>( self, apply: impl Fn() -> bool + 'static, name: impl Fn() -> S + 'static, ) -> Self::DV

Conditionally add a debug name to the view that will be shown in the inspector. Read more
Source§

fn dragging_style(self, style: impl Fn(Style) -> Style + 'static) -> Self::DV

The visual style to apply when the mouse hovers over the element
Source§

fn class<C: StyleClass>(self, _class: C) -> Self::DV

Add a style class to the view
Source§

fn class_if<C: StyleClass>( self, apply: impl Fn() -> bool + 'static, _class: C, ) -> Self::DV

Conditionally add a style class to the view
Source§

fn remove_class<C: StyleClass>(self, _class: C) -> Self::DV

Remove a style class from the view
Source§

fn keyboard_navigable(self) -> Self::DV

Allows the element to be navigated to with the keyboard. Similar to setting tabindex=“0” in html.
Source§

fn disable_default_event( self, disable: impl Fn() -> (EventListener, bool) + 'static, ) -> Self::DV

Dynamically controls whether the default view behavior for an event should be disabled. When disable is true, children will still see the event, but the view event function will not be called nor the event listeners on the view. Read more
Source§

fn draggable(self) -> Self::DV

Mark the view as draggable
Source§

fn disabled(self, disabled_fn: impl Fn() -> bool + 'static) -> Self::DV

Mark the view as disabled Read more
Source§

fn on_event( self, listener: EventListener, action: impl FnMut(&Event) -> EventPropagation + 'static, ) -> Self::DV

Add an event handler for the given EventListener.
Source§

fn on_key_down( self, key: Key, cmp: impl Fn(Modifiers) -> bool + 'static, action: impl Fn(&Event) + 'static, ) -> Self::DV

Add an handler for pressing down a specific key. Read more
Source§

fn on_key_up( self, key: Key, cmp: impl Fn(Modifiers) -> bool + 'static, action: impl Fn(&Event) + 'static, ) -> Self::DV

Add an handler for a specific key being released. Read more
Source§

fn on_event_cont( self, listener: EventListener, action: impl Fn(&Event) + 'static, ) -> Self::DV

Add an event handler for the given EventListener. This event will be handled with the given handler and the event will continue propagating.
Source§

fn on_event_stop( self, listener: EventListener, action: impl Fn(&Event) + 'static, ) -> Self::DV

Add an event handler for the given EventListener. This event will be handled with the given handler and the event will stop propagating.
Source§

fn on_click( self, action: impl FnMut(&Event) -> EventPropagation + 'static, ) -> Self::DV

Add an event handler for EventListener::Click.
Source§

fn on_click_cont(self, action: impl Fn(&Event) + 'static) -> Self::DV

Add an event handler for EventListener::Click. This event will be handled with the given handler and the event will continue propagating.
Source§

fn on_click_stop(self, action: impl FnMut(&Event) + 'static) -> Self::DV

Add an event handler for EventListener::Click. This event will be handled with the given handler and the event will stop propagating.
Source§

fn on_double_click( self, action: impl Fn(&Event) -> EventPropagation + 'static, ) -> Self::DV

Add an event handler for EventListener::DoubleClick
Source§

fn on_double_click_cont(self, action: impl Fn(&Event) + 'static) -> Self::DV

Add an event handler for EventListener::DoubleClick. This event will be handled with the given handler and the event will continue propagating.
Source§

fn on_double_click_stop(self, action: impl Fn(&Event) + 'static) -> Self::DV

Add an event handler for EventListener::DoubleClick. This event will be handled with the given handler and the event will stop propagating.
Source§

fn on_secondary_click( self, action: impl Fn(&Event) -> EventPropagation + 'static, ) -> Self::DV

Add an event handler for EventListener::SecondaryClick. This is most often the “Right” click.
Source§

fn on_secondary_click_cont(self, action: impl Fn(&Event) + 'static) -> Self::DV

Add an event handler for EventListener::SecondaryClick. This is most often the “Right” click. This event will be handled with the given handler and the event will continue propagating.
Source§

fn on_secondary_click_stop(self, action: impl Fn(&Event) + 'static) -> Self::DV

Add an event handler for EventListener::SecondaryClick. This is most often the “Right” click. This event will be handled with the given handler and the event will stop propagating.
Source§

fn on_resize(self, action: impl Fn(Rect) + 'static) -> Self::DV

Set the event handler for resize events for this view. Read more
Source§

fn on_move(self, action: impl Fn(Point) + 'static) -> Self::DV

Set the event handler for move events for this view. Read more
Source§

fn on_cleanup(self, action: impl Fn() + 'static) -> Self::DV

Set the event handler for cleanup events for this view. Read more
Source§

fn animation( self, animation: impl Fn(Animation) -> Animation + 'static, ) -> Self::DV

Add an animation to the view. Read more
Source§

fn clear_focus(self, when: impl Fn() + 'static) -> Self::DV

Clear the focus from the window. Read more
Source§

fn request_focus(self, when: impl Fn() + 'static) -> Self::DV

Request that this view gets the focus for the window. Read more
Source§

fn window_scale(self, scale_fn: impl Fn() -> f64 + 'static) -> Self

Set the window scale factor. Read more
Source§

fn window_title(self, title_fn: impl Fn() -> String + 'static) -> Self

Set the window title. Read more
Source§

fn window_menu(self, menu_fn: impl Fn() -> Menu + 'static) -> Self

Set the system window menu Read more
Source§

fn context_menu(self, menu: impl Fn() -> Menu + 'static) -> Self::DV

Adds a secondary-click context menu to the view, which opens at the mouse position. Read more
Source§

fn popout_menu(self, menu: impl Fn() -> Menu + 'static) -> Self::DV

Adds a primary-click context menu, which opens below the view. Read more
§

impl<T> Downcast<T> for T

§

fn downcast(&self) -> &T

§

impl<T> Downcast for T
where T: Any,

§

fn into_any(self: Box<T>) -> Box<dyn Any>

Convert Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.
§

fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>

Convert Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be further downcast into Rc<ConcreteType> where ConcreteType implements Trait.
§

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

Convert &Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &Any’s vtable from &Trait’s.
§

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

Convert &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &mut Any’s vtable from &mut Trait’s.
§

impl<T> DowncastSync for T
where T: Any + Send + Sync,

§

fn into_any_arc(self: Arc<T>) -> Arc<dyn Any + Sync + Send>

Convert Arc<Trait> (where Trait: Downcast) to Arc<Any>. Arc<Any> can then be further downcast into Arc<ConcreteType> where ConcreteType implements Trait.
§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ScrollExt for T
where T: IntoView + 'static,

Source§

fn scroll(self) -> Scroll

Wrap the view in a scroll view.
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T> TooltipExt for T
where T: IntoView + 'static,

Source§

fn tooltip<V>(self, tip: impl Fn() -> V + 'static) -> Tooltip
where V: IntoView + 'static,

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

impl<T> Upcast<T> for T

§

fn upcast(&self) -> Option<&T>

§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

impl<T> ErasedDestructor for T
where T: 'static,

§

impl<T> MaybeSendSync for T

Source§

impl<T, Rhs> NumAssignOps<Rhs> for T
where T: AddAssign<Rhs> + SubAssign<Rhs> + MulAssign<Rhs> + DivAssign<Rhs> + RemAssign<Rhs>,

Source§

impl<T, Rhs, Output> NumOps<Rhs, Output> for T
where T: Sub<Rhs, Output = Output> + Mul<Rhs, Output = Output> + Div<Rhs, Output = Output> + Add<Rhs, Output = Output> + Rem<Rhs, Output = Output>,

§

impl<T> WasmNotSend for T
where T: Send,

§

impl<T> WasmNotSendSync for T
where T: WasmNotSend + WasmNotSync,

§

impl<T> WasmNotSync for T
where T: Sync,