Expand description
WebSys
is a Frontend
implementor that implements Gooey interfaces
through web-sys
in a web browser.
Fields
ui: Gooey<WebSys>
Implementations
sourceimpl WebSys
impl WebSys
pub fn initialize()
pub fn new(ui: Gooey<WebSys>, configuration: Configuration) -> WebSys
pub fn install_in_id(&mut self, id: &str, _window_config: WindowConfiguration)
sourcepub fn with_transmogrifier<TResult, C>(
&self,
widget_id: &WidgetId,
callback: C
) -> Option<TResult> where
C: FnOnce(&dyn AnyWebSysTransmogrifier, AnyTransmogrifierContext<'_, WebSys>) -> TResult,
pub fn with_transmogrifier<TResult, C>(
&self,
widget_id: &WidgetId,
callback: C
) -> Option<TResult> where
C: FnOnce(&dyn AnyWebSysTransmogrifier, AnyTransmogrifierContext<'_, WebSys>) -> TResult,
Executes callback
with the transmogrifier and transmogrifier state as
parameters.
pub fn register_intent_handler(
&self,
intent: Intent,
widget: &WidgetRegistration,
callback: Callback<(), ()>
)
Trait Implementations
sourceimpl AnyTransmogrifier<WebSys> for RegisteredTransmogrifier
impl AnyTransmogrifier<WebSys> for RegisteredTransmogrifier
sourcefn process_messages(&self, context: AnyTransmogrifierContext<'_, WebSys>)
fn process_messages(&self, context: AnyTransmogrifierContext<'_, WebSys>)
Processes commands and events for this widget and transmogrifier.
sourcefn widget_type_id(&self) -> TypeId
fn widget_type_id(&self) -> TypeId
sourcefn default_state_for(
&self,
widget: &mut (dyn AnyWidget + 'static),
registration: &WidgetRegistration,
frontend: &WebSys
) -> TransmogrifierState
fn default_state_for(
&self,
widget: &mut (dyn AnyWidget + 'static),
registration: &WidgetRegistration,
frontend: &WebSys
) -> TransmogrifierState
Initializes default state for a newly created widget.
sourceimpl Frontend for WebSys
impl Frontend for WebSys
type AnyTransmogrifier = RegisteredTransmogrifier
type AnyTransmogrifier = RegisteredTransmogrifier
The generic-free type of the frontend-specific transmogrifier trait.
sourcefn set_widget_has_messages(&self, widget: WidgetId)
fn set_widget_has_messages(&self, widget: WidgetId)
Notifies the frontend that a widget has messages. Frontends should
ensure that process_widget_messages
is called at some point after this
method is called. Read more
sourcefn theme(&self) -> SystemTheme
fn theme(&self) -> SystemTheme
Returns the current system theme.
sourcefn load_image(
&self,
image: &Image,
completed: Callback<Image, ()>,
error: Callback<String, ()>
)
fn load_image(
&self,
image: &Image,
completed: Callback<Image, ()>,
error: Callback<String, ()>
)
Loads an image asynchronously, executing completed
when loaded.
sourcefn asset_configuration(&self) -> &Configuration
fn asset_configuration(&self) -> &Configuration
Returns the asset configuration.
sourcefn schedule_timer(
&self,
callback: Callback<(), ()>,
period: Duration,
repeating: bool
) -> Timer
fn schedule_timer(
&self,
callback: Callback<(), ()>,
period: Duration,
repeating: bool
) -> Timer
Schedules a timer that invokes callback
after duration
, and repeats if repeating
is true.
sourcefn window(&self) -> Option<&(dyn Window + 'static)>
fn window(&self) -> Option<&(dyn Window + 'static)>
Returns the window for this interface, if present.
sourcefn open(&self, _window: Box<dyn AnyWindowBuilder + 'static, Global>) -> bool
fn open(&self, _window: Box<dyn AnyWindowBuilder + 'static, Global>) -> bool
Opens a window. Returns false if unable to open the window.
sourcefn ui_state_for(&self, widget_id: &WidgetId) -> State
fn ui_state_for(&self, widget_id: &WidgetId) -> State
sourcefn asset_url(&self, asset: &Asset) -> Option<Url>
fn asset_url(&self, asset: &Asset) -> Option<Url>
Returns the full Url for the asset, if available.
sourcefn exit_managed_code(&self)
fn exit_managed_code(&self)
Executed when Gooey
exits a managed code block.
sourcefn widget_initialized(&self, widget: &WidgetId, style: &Style)
fn widget_initialized(&self, widget: &WidgetId, style: &Style)
A widget is being initialized.
sourceimpl Transmogrifier<WebSys> for ContainerTransmogrifier
impl Transmogrifier<WebSys> for ContainerTransmogrifier
sourcefn initialize(
&self,
widget: &mut Self::Widget,
reference: &WidgetRef<Self::Widget>,
frontend: &F
) -> Self::State
fn initialize(
&self,
widget: &mut Self::Widget,
reference: &WidgetRef<Self::Widget>,
frontend: &F
) -> Self::State
Called after a transmogrifier is initialized.
sourcefn receive_command(
&self,
command: <Self::Widget as Widget>::Command,
context: &mut TransmogrifierContext<'_, Self, F>
)
fn receive_command(
&self,
command: <Self::Widget as Widget>::Command,
context: &mut TransmogrifierContext<'_, Self, F>
)
Called when a command is received from the widget.
sourcefn process_messages(
&self,
transmogrifier_context: TransmogrifierContext<'_, Self, F>
)
fn process_messages(
&self,
transmogrifier_context: TransmogrifierContext<'_, Self, F>
)
Processes commands and events for this widget and transmogrifier.
sourcefn default_state_for(
&self,
widget: &mut Self::Widget,
reference: &WidgetRef<Self::Widget>,
frontend: &F
) -> TransmogrifierState
fn default_state_for(
&self,
widget: &mut Self::Widget,
reference: &WidgetRef<Self::Widget>,
frontend: &F
) -> TransmogrifierState
Returns an initialized state using Self::State::default()
.
sourcefn widget_type_id(&self) -> TypeId
fn widget_type_id(&self) -> TypeId
Returns the TypeId
of Self::Widget
.
sourceimpl Transmogrifier<WebSys> for LayoutTransmogrifier
impl Transmogrifier<WebSys> for LayoutTransmogrifier
type State = WebSysLayoutState
type State = WebSysLayoutState
The type the storage this transmogrifier uses for state.
sourcefn receive_command(
&self,
command: LayoutCommand,
context: &mut TransmogrifierContext<'_, LayoutTransmogrifier, WebSys>
)
fn receive_command(
&self,
command: LayoutCommand,
context: &mut TransmogrifierContext<'_, LayoutTransmogrifier, WebSys>
)
Called when a command is received from the widget.
sourcefn initialize(
&self,
widget: &mut Self::Widget,
reference: &WidgetRef<Self::Widget>,
frontend: &F
) -> Self::State
fn initialize(
&self,
widget: &mut Self::Widget,
reference: &WidgetRef<Self::Widget>,
frontend: &F
) -> Self::State
Called after a transmogrifier is initialized.
sourcefn process_messages(
&self,
transmogrifier_context: TransmogrifierContext<'_, Self, F>
)
fn process_messages(
&self,
transmogrifier_context: TransmogrifierContext<'_, Self, F>
)
Processes commands and events for this widget and transmogrifier.
sourcefn default_state_for(
&self,
widget: &mut Self::Widget,
reference: &WidgetRef<Self::Widget>,
frontend: &F
) -> TransmogrifierState
fn default_state_for(
&self,
widget: &mut Self::Widget,
reference: &WidgetRef<Self::Widget>,
frontend: &F
) -> TransmogrifierState
Returns an initialized state using Self::State::default()
.
sourcefn widget_type_id(&self) -> TypeId
fn widget_type_id(&self) -> TypeId
Returns the TypeId
of Self::Widget
.
sourceimpl<B> Transmogrifier<WebSys> for ComponentTransmogrifier<B> where
B: Behavior,
impl<B> Transmogrifier<WebSys> for ComponentTransmogrifier<B> where
B: Behavior,
sourcefn initialize(
&self,
component: &mut <ComponentTransmogrifier<B> as Transmogrifier<WebSys>>::Widget,
widget: &WidgetRef<<ComponentTransmogrifier<B> as Transmogrifier<WebSys>>::Widget>,
frontend: &WebSys
) -> <ComponentTransmogrifier<B> as Transmogrifier<WebSys>>::State
fn initialize(
&self,
component: &mut <ComponentTransmogrifier<B> as Transmogrifier<WebSys>>::Widget,
widget: &WidgetRef<<ComponentTransmogrifier<B> as Transmogrifier<WebSys>>::Widget>,
frontend: &WebSys
) -> <ComponentTransmogrifier<B> as Transmogrifier<WebSys>>::State
Called after a transmogrifier is initialized.
sourcefn receive_command(
&self,
command: <<ComponentTransmogrifier<B> as Transmogrifier<WebSys>>::Widget as Widget>::Command,
context: &mut TransmogrifierContext<'_, ComponentTransmogrifier<B>, WebSys>
)
fn receive_command(
&self,
command: <<ComponentTransmogrifier<B> as Transmogrifier<WebSys>>::Widget as Widget>::Command,
context: &mut TransmogrifierContext<'_, ComponentTransmogrifier<B>, WebSys>
)
Called when a command is received from the widget.
sourcefn process_messages(
&self,
transmogrifier_context: TransmogrifierContext<'_, Self, F>
)
fn process_messages(
&self,
transmogrifier_context: TransmogrifierContext<'_, Self, F>
)
Processes commands and events for this widget and transmogrifier.
sourcefn default_state_for(
&self,
widget: &mut Self::Widget,
reference: &WidgetRef<Self::Widget>,
frontend: &F
) -> TransmogrifierState
fn default_state_for(
&self,
widget: &mut Self::Widget,
reference: &WidgetRef<Self::Widget>,
frontend: &F
) -> TransmogrifierState
Returns an initialized state using Self::State::default()
.
sourcefn widget_type_id(&self) -> TypeId
fn widget_type_id(&self) -> TypeId
Returns the TypeId
of Self::Widget
.
sourceimpl Transmogrifier<WebSys> for InputTransmogrifier
impl Transmogrifier<WebSys> for InputTransmogrifier
sourcefn receive_command(
&self,
command: Command,
context: &mut TransmogrifierContext<'_, InputTransmogrifier, WebSys>
)
fn receive_command(
&self,
command: Command,
context: &mut TransmogrifierContext<'_, InputTransmogrifier, WebSys>
)
Called when a command is received from the widget.
sourcefn initialize(
&self,
widget: &mut Self::Widget,
reference: &WidgetRef<Self::Widget>,
frontend: &F
) -> Self::State
fn initialize(
&self,
widget: &mut Self::Widget,
reference: &WidgetRef<Self::Widget>,
frontend: &F
) -> Self::State
Called after a transmogrifier is initialized.
sourcefn process_messages(
&self,
transmogrifier_context: TransmogrifierContext<'_, Self, F>
)
fn process_messages(
&self,
transmogrifier_context: TransmogrifierContext<'_, Self, F>
)
Processes commands and events for this widget and transmogrifier.
sourcefn default_state_for(
&self,
widget: &mut Self::Widget,
reference: &WidgetRef<Self::Widget>,
frontend: &F
) -> TransmogrifierState
fn default_state_for(
&self,
widget: &mut Self::Widget,
reference: &WidgetRef<Self::Widget>,
frontend: &F
) -> TransmogrifierState
Returns an initialized state using Self::State::default()
.
sourcefn widget_type_id(&self) -> TypeId
fn widget_type_id(&self) -> TypeId
Returns the TypeId
of Self::Widget
.
sourceimpl Transmogrifier<WebSys> for ListTransmogrifier
impl Transmogrifier<WebSys> for ListTransmogrifier
sourcefn receive_command(
&self,
command: ListCommand,
context: &mut TransmogrifierContext<'_, ListTransmogrifier, WebSys>
)
fn receive_command(
&self,
command: ListCommand,
context: &mut TransmogrifierContext<'_, ListTransmogrifier, WebSys>
)
Called when a command is received from the widget.
sourcefn initialize(
&self,
widget: &mut Self::Widget,
reference: &WidgetRef<Self::Widget>,
frontend: &F
) -> Self::State
fn initialize(
&self,
widget: &mut Self::Widget,
reference: &WidgetRef<Self::Widget>,
frontend: &F
) -> Self::State
Called after a transmogrifier is initialized.
sourcefn process_messages(
&self,
transmogrifier_context: TransmogrifierContext<'_, Self, F>
)
fn process_messages(
&self,
transmogrifier_context: TransmogrifierContext<'_, Self, F>
)
Processes commands and events for this widget and transmogrifier.
sourcefn default_state_for(
&self,
widget: &mut Self::Widget,
reference: &WidgetRef<Self::Widget>,
frontend: &F
) -> TransmogrifierState
fn default_state_for(
&self,
widget: &mut Self::Widget,
reference: &WidgetRef<Self::Widget>,
frontend: &F
) -> TransmogrifierState
Returns an initialized state using Self::State::default()
.
sourcefn widget_type_id(&self) -> TypeId
fn widget_type_id(&self) -> TypeId
Returns the TypeId
of Self::Widget
.
sourceimpl Transmogrifier<WebSys> for ButtonTransmogrifier
impl Transmogrifier<WebSys> for ButtonTransmogrifier
sourcefn receive_command(
&self,
command: ButtonCommand,
context: &mut TransmogrifierContext<'_, ButtonTransmogrifier, WebSys>
)
fn receive_command(
&self,
command: ButtonCommand,
context: &mut TransmogrifierContext<'_, ButtonTransmogrifier, WebSys>
)
Called when a command is received from the widget.
sourcefn initialize(
&self,
widget: &mut Self::Widget,
reference: &WidgetRef<Self::Widget>,
frontend: &F
) -> Self::State
fn initialize(
&self,
widget: &mut Self::Widget,
reference: &WidgetRef<Self::Widget>,
frontend: &F
) -> Self::State
Called after a transmogrifier is initialized.
sourcefn process_messages(
&self,
transmogrifier_context: TransmogrifierContext<'_, Self, F>
)
fn process_messages(
&self,
transmogrifier_context: TransmogrifierContext<'_, Self, F>
)
Processes commands and events for this widget and transmogrifier.
sourcefn default_state_for(
&self,
widget: &mut Self::Widget,
reference: &WidgetRef<Self::Widget>,
frontend: &F
) -> TransmogrifierState
fn default_state_for(
&self,
widget: &mut Self::Widget,
reference: &WidgetRef<Self::Widget>,
frontend: &F
) -> TransmogrifierState
Returns an initialized state using Self::State::default()
.
sourcefn widget_type_id(&self) -> TypeId
fn widget_type_id(&self) -> TypeId
Returns the TypeId
of Self::Widget
.
sourceimpl Transmogrifier<WebSys> for CheckboxTransmogrifier
impl Transmogrifier<WebSys> for CheckboxTransmogrifier
sourcefn receive_command(
&self,
command: CheckboxCommand,
context: &mut TransmogrifierContext<'_, CheckboxTransmogrifier, WebSys>
)
fn receive_command(
&self,
command: CheckboxCommand,
context: &mut TransmogrifierContext<'_, CheckboxTransmogrifier, WebSys>
)
Called when a command is received from the widget.
sourcefn initialize(
&self,
widget: &mut Self::Widget,
reference: &WidgetRef<Self::Widget>,
frontend: &F
) -> Self::State
fn initialize(
&self,
widget: &mut Self::Widget,
reference: &WidgetRef<Self::Widget>,
frontend: &F
) -> Self::State
Called after a transmogrifier is initialized.
sourcefn process_messages(
&self,
transmogrifier_context: TransmogrifierContext<'_, Self, F>
)
fn process_messages(
&self,
transmogrifier_context: TransmogrifierContext<'_, Self, F>
)
Processes commands and events for this widget and transmogrifier.
sourcefn default_state_for(
&self,
widget: &mut Self::Widget,
reference: &WidgetRef<Self::Widget>,
frontend: &F
) -> TransmogrifierState
fn default_state_for(
&self,
widget: &mut Self::Widget,
reference: &WidgetRef<Self::Widget>,
frontend: &F
) -> TransmogrifierState
Returns an initialized state using Self::State::default()
.
sourcefn widget_type_id(&self) -> TypeId
fn widget_type_id(&self) -> TypeId
Returns the TypeId
of Self::Widget
.
sourceimpl Transmogrifier<WebSys> for LabelTransmogrifier
impl Transmogrifier<WebSys> for LabelTransmogrifier
sourcefn receive_command(
&self,
command: Command,
context: &mut TransmogrifierContext<'_, LabelTransmogrifier, WebSys>
)
fn receive_command(
&self,
command: Command,
context: &mut TransmogrifierContext<'_, LabelTransmogrifier, WebSys>
)
Called when a command is received from the widget.
sourcefn initialize(
&self,
widget: &mut Self::Widget,
reference: &WidgetRef<Self::Widget>,
frontend: &F
) -> Self::State
fn initialize(
&self,
widget: &mut Self::Widget,
reference: &WidgetRef<Self::Widget>,
frontend: &F
) -> Self::State
Called after a transmogrifier is initialized.
sourcefn process_messages(
&self,
transmogrifier_context: TransmogrifierContext<'_, Self, F>
)
fn process_messages(
&self,
transmogrifier_context: TransmogrifierContext<'_, Self, F>
)
Processes commands and events for this widget and transmogrifier.
sourcefn default_state_for(
&self,
widget: &mut Self::Widget,
reference: &WidgetRef<Self::Widget>,
frontend: &F
) -> TransmogrifierState
fn default_state_for(
&self,
widget: &mut Self::Widget,
reference: &WidgetRef<Self::Widget>,
frontend: &F
) -> TransmogrifierState
Returns an initialized state using Self::State::default()
.
sourcefn widget_type_id(&self) -> TypeId
fn widget_type_id(&self) -> TypeId
Returns the TypeId
of Self::Widget
.
sourceimpl Window for WebSys
impl Window for WebSys
sourcefn inner_size(&self) -> Size<u32, Pixels>
fn inner_size(&self) -> Size<u32, Pixels>
Returns the size of the content area of the window.
sourcefn set_inner_size(&self, new_size: Size<u32, Pixels>)
fn set_inner_size(&self, new_size: Size<u32, Pixels>)
Attempts to resize the window to new_size
. This may not work on all platforms.
sourcefn set_outer_position(&self, new_position: Point<i32, Pixels>)
fn set_outer_position(&self, new_position: Point<i32, Pixels>)
Sets the outer position of the window. This may not work on all platforms.
sourcefn inner_position(&self) -> Point<i32, Pixels>
fn inner_position(&self) -> Point<i32, Pixels>
Returns the position of the top-left of the content area in screen coordinates.
sourcefn set_always_on_top(&self, _always: bool)
fn set_always_on_top(&self, _always: bool)
Sets whether the window should always be on top of other windows.
sourcefn set_maximized(&self, maximized: bool)
fn set_maximized(&self, maximized: bool)
Sets whether the window should be maximized.
sourcefn set_minimized(&self, _minimized: bool)
fn set_minimized(&self, _minimized: bool)
Sets whether the window should be minimized.
Auto Trait Implementations
impl !RefUnwindSafe for WebSys
impl Send for WebSys
impl Sync for WebSys
impl Unpin for WebSys
impl !UnwindSafe for WebSys
Blanket Implementations
sourceimpl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
T: FloatComponent,
Swp: WhitePoint,
Dwp: WhitePoint,
D: AdaptFrom<S, Swp, Dwp, T>,
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
T: FloatComponent,
Swp: WhitePoint,
Dwp: WhitePoint,
D: AdaptFrom<S, Swp, Dwp, T>,
sourcefn adapt_into_using<M>(self, method: M) -> D where
M: TransformMatrix<Swp, Dwp, T>,
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 Read more
sourcefn adapt_into(self) -> D
fn adapt_into(self) -> D
Convert the source color to the destination color using the bradford method by default Read more
sourceimpl<T> AnyFrontend for T where
T: Frontend + AnySendSync,
impl<T> AnyFrontend for T where
T: Frontend + AnySendSync,
sourcefn cloned(&self) -> Box<dyn AnyFrontend + 'static, Global>ⓘNotable traits for Box<R, Global>impl<R> Read for Box<R, Global> where
R: Read + ?Sized, impl<W> Write for Box<W, Global> where
W: Write + ?Sized, impl<I, A> Iterator for Box<I, A> where
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;impl<F, A> Future for Box<F, A> where
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;
fn cloned(&self) -> Box<dyn AnyFrontend + 'static, Global>ⓘNotable traits for Box<R, Global>impl<R> Read for Box<R, Global> where
R: Read + ?Sized, impl<W> Write for Box<W, Global> where
W: Write + ?Sized, impl<I, A> Iterator for Box<I, A> where
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;impl<F, A> Future for Box<F, A> where
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;
R: Read + ?Sized, impl<W> Write for Box<W, Global> where
W: Write + ?Sized, impl<I, A> Iterator for Box<I, A> where
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;impl<F, A> Future for Box<F, A> where
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;
Clones the frontend, returning the clone in a box.
sourcefn storage(&self) -> &WidgetStorage
fn storage(&self) -> &WidgetStorage
Returns the widget storage.
sourcefn set_widget_has_messages(&self, widget: WidgetId)
fn set_widget_has_messages(&self, widget: WidgetId)
Notifies the frontend that a widget has messages. Frontends should
ensure that process_widget_messages
is called at some point after this
method is called. Read more
sourcefn enter_managed_code(&self) -> ManagedCodeGuard
fn enter_managed_code(&self) -> ManagedCodeGuard
Marks that managed code is being executed. Can be nested. Automatically exited when the returned guard is dropped.
fn _exit_managed_code(&self, allow_process_messages: bool)
sourcefn theme(&self) -> SystemTheme
fn theme(&self) -> SystemTheme
Returns the current system theme.
sourcefn load_image(
&self,
asset: &Image,
completed: Callback<Image, ()>,
error: Callback<String, ()>
)
fn load_image(
&self,
asset: &Image,
completed: Callback<Image, ()>,
error: Callback<String, ()>
)
Loads an image asynchronously, executing completed
when loaded.
sourcefn asset_url(&self, asset: &Asset) -> Option<Url>
fn asset_url(&self, asset: &Asset) -> Option<Url>
Returns the full Url for the asset, if available.
sourcefn schedule_timer(
&self,
callback: Callback<(), ()>,
duration: Duration,
repeating: bool
) -> Timer
fn schedule_timer(
&self,
callback: Callback<(), ()>,
duration: Duration,
repeating: bool
) -> Timer
Schedules a timer that invokes callback
after duration
, and repeats if repeating
is true.
sourcefn localize(
&self,
key: &str,
parameters: Option<LocalizationParameters<'a>>
) -> String
fn localize(
&self,
key: &str,
parameters: Option<LocalizationParameters<'a>>
) -> String
Localizes key
with parameters
.
sourcefn window(&self) -> Option<&(dyn Window + 'static)>
fn window(&self) -> Option<&(dyn Window + 'static)>
Returns the window for this frontend instance.
sourcefn open(&self, window: Box<dyn AnyWindowBuilder + 'static, Global>) -> bool
fn open(&self, window: Box<dyn AnyWindowBuilder + 'static, Global>) -> bool
Opens a window. Returns false if unable to open the window.
sourcefn app(&self) -> &AppContext
fn app(&self) -> &AppContext
Returns the current application context.
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T, U> IntoColor<U> for T where
U: FromColor<T>,
impl<T, U> IntoColor<U> for T where
U: FromColor<T>,
sourcefn into_color(self) -> U
fn into_color(self) -> U
Convert into T with values clamped to the color defined bounds Read more
sourceimpl<T, U> IntoColorUnclamped<U> for T where
U: FromColorUnclamped<T>,
impl<T, U> IntoColorUnclamped<U> for T where
U: FromColorUnclamped<T>,
sourcefn into_color_unclamped(self) -> U
fn into_color_unclamped(self) -> U
Convert into T. The resulting color might be invalid in its color space Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T, U> TryIntoColor<U> for T where
U: TryFromColor<T>,
impl<T, U> TryIntoColor<U> for T where
U: TryFromColor<T>,
sourcefn try_into_color(self) -> Result<U, OutOfBounds<U>>
fn try_into_color(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
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
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
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more