From 895901e7d925677568f87148f380cacba722f073 Mon Sep 17 00:00:00 2001 From: hecrj Date: Tue, 28 Jan 2025 17:35:57 +0000 Subject: [PATCH] deploy: iced-rs/iced@12c9277c7cdee702266ae4e11da9c7dd370b75d7 --- type.impl/alloc/boxed/struct.Box.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/type.impl/alloc/boxed/struct.Box.js b/type.impl/alloc/boxed/struct.Box.js index 22beca1a31..c15d16e253 100644 --- a/type.impl/alloc/boxed/struct.Box.js +++ b/type.impl/alloc/boxed/struct.Box.js @@ -1,9 +1,9 @@ (function() { - var type_impls = Object.fromEntries([["iced",[["
§

impl<T> AnyProvider for Box<T>
where\n T: AnyProvider + ?Sized,

§

fn load_any(\n &self,\n key: DataKey,\n req: DataRequest<'_>,\n) -> Result<AnyResponse, DataError>

Loads an [AnyPayload] according to the key and request.
","AnyProvider","iced::widget::text::StyleFn","iced::overlay::menu::StyleFn","iced::widget::button::StyleFn","iced::widget::checkbox::StyleFn","iced::widget::container::StyleFn","iced::widget::pane_grid::StyleFn","iced::widget::pick_list::StyleFn","iced::widget::progress_bar::StyleFn","iced::widget::radio::StyleFn","iced::widget::rule::StyleFn","iced::widget::scrollable::StyleFn","iced::widget::slider::StyleFn","iced::widget::text_editor::StyleFn","iced::widget::text_input::StyleFn","iced::widget::toggler::StyleFn","iced::widget::svg::StyleFn","iced::widget::qr_code::StyleFn"],["
§

impl<A, T> ApplicationHandler<T> for Box<A>
where\n A: ApplicationHandler<T> + ?Sized,\n T: 'static,

§

fn new_events(&mut self, event_loop: &ActiveEventLoop, cause: StartCause)

Emitted when new events arrive from the OS to be processed. Read more
§

fn resumed(&mut self, event_loop: &ActiveEventLoop)

Emitted when the application has been resumed. Read more
§

fn user_event(&mut self, event_loop: &ActiveEventLoop, event: T)

Emitted when an event is sent from EventLoopProxy::send_event.
§

fn window_event(\n &mut self,\n event_loop: &ActiveEventLoop,\n window_id: WindowId,\n event: WindowEvent,\n)

Emitted when the OS sends an event to a winit window.
§

fn device_event(\n &mut self,\n event_loop: &ActiveEventLoop,\n device_id: DeviceId,\n event: DeviceEvent,\n)

Emitted when the OS sends an event to a device.
§

fn about_to_wait(&mut self, event_loop: &ActiveEventLoop)

Emitted when the event loop is about to block and wait for new events. Read more
§

fn suspended(&mut self, event_loop: &ActiveEventLoop)

Emitted when the application has been suspended. Read more
§

fn exiting(&mut self, event_loop: &ActiveEventLoop)

Emitted when the event loop is being shut down. Read more
§

fn memory_warning(&mut self, event_loop: &ActiveEventLoop)

Emitted when the application has received a memory warning. Read more
§

fn received_url(&mut self, event_loop: &ActiveEventLoop, url: String)

Emitted when the application has received a URL, through a\ncustom URL handler. Read more
","ApplicationHandler","iced::widget::text::StyleFn","iced::overlay::menu::StyleFn","iced::widget::button::StyleFn","iced::widget::checkbox::StyleFn","iced::widget::container::StyleFn","iced::widget::pane_grid::StyleFn","iced::widget::pick_list::StyleFn","iced::widget::progress_bar::StyleFn","iced::widget::radio::StyleFn","iced::widget::rule::StyleFn","iced::widget::scrollable::StyleFn","iced::widget::slider::StyleFn","iced::widget::text_editor::StyleFn","iced::widget::text_input::StyleFn","iced::widget::toggler::StyleFn","iced::widget::svg::StyleFn","iced::widget::qr_code::StyleFn"],["
1.64.0 · Source§

impl<T> AsFd for Box<T>
where\n T: AsFd + ?Sized,

Source§

fn as_fd(&self) -> BorrowedFd<'_>

Borrows the file descriptor. Read more
","AsFd","iced::widget::text::StyleFn","iced::overlay::menu::StyleFn","iced::widget::button::StyleFn","iced::widget::checkbox::StyleFn","iced::widget::container::StyleFn","iced::widget::pane_grid::StyleFn","iced::widget::pick_list::StyleFn","iced::widget::progress_bar::StyleFn","iced::widget::radio::StyleFn","iced::widget::rule::StyleFn","iced::widget::scrollable::StyleFn","iced::widget::slider::StyleFn","iced::widget::text_editor::StyleFn","iced::widget::text_input::StyleFn","iced::widget::toggler::StyleFn","iced::widget::svg::StyleFn","iced::widget::qr_code::StyleFn"],["
1.5.0 · Source§

impl<T, A> AsMut<T> for Box<T, A>
where\n A: Allocator,\n T: ?Sized,

Source§

fn as_mut(&mut self) -> &mut T

Converts this type into a mutable reference of the (usually inferred) input type.
","AsMut","iced::widget::text::StyleFn","iced::overlay::menu::StyleFn","iced::widget::button::StyleFn","iced::widget::checkbox::StyleFn","iced::widget::container::StyleFn","iced::widget::pane_grid::StyleFn","iced::widget::pick_list::StyleFn","iced::widget::progress_bar::StyleFn","iced::widget::radio::StyleFn","iced::widget::rule::StyleFn","iced::widget::scrollable::StyleFn","iced::widget::slider::StyleFn","iced::widget::text_editor::StyleFn","iced::widget::text_input::StyleFn","iced::widget::toggler::StyleFn","iced::widget::svg::StyleFn","iced::widget::qr_code::StyleFn"],["
1.63.0 · Source§

impl<T> AsRawFd for Box<T>
where\n T: AsRawFd,

Source§

fn as_raw_fd(&self) -> i32

Extracts the raw file descriptor. Read more
","AsRawFd","iced::widget::text::StyleFn","iced::overlay::menu::StyleFn","iced::widget::button::StyleFn","iced::widget::checkbox::StyleFn","iced::widget::container::StyleFn","iced::widget::pane_grid::StyleFn","iced::widget::pick_list::StyleFn","iced::widget::progress_bar::StyleFn","iced::widget::radio::StyleFn","iced::widget::rule::StyleFn","iced::widget::scrollable::StyleFn","iced::widget::slider::StyleFn","iced::widget::text_editor::StyleFn","iced::widget::text_input::StyleFn","iced::widget::toggler::StyleFn","iced::widget::svg::StyleFn","iced::widget::qr_code::StyleFn"],["
§

impl<T> AsRawXcbConnection for Box<T>
where\n T: AsRawXcbConnection + ?Sized,

Available on crate feature alloc only.
§

fn as_raw_xcb_connection(&self) -> *mut xcb_connection_t

Get a raw xcb connection pointer from this object.
","AsRawXcbConnection","iced::widget::text::StyleFn","iced::overlay::menu::StyleFn","iced::widget::button::StyleFn","iced::widget::checkbox::StyleFn","iced::widget::container::StyleFn","iced::widget::pane_grid::StyleFn","iced::widget::pick_list::StyleFn","iced::widget::progress_bar::StyleFn","iced::widget::radio::StyleFn","iced::widget::rule::StyleFn","iced::widget::scrollable::StyleFn","iced::widget::slider::StyleFn","iced::widget::text_editor::StyleFn","iced::widget::text_input::StyleFn","iced::widget::toggler::StyleFn","iced::widget::svg::StyleFn","iced::widget::qr_code::StyleFn"],["
1.5.0 · Source§

impl<T, A> AsRef<T> for Box<T, A>
where\n A: Allocator,\n T: ?Sized,

Source§

fn as_ref(&self) -> &T

Converts this type into a shared reference of the (usually inferred) input type.
","AsRef","iced::widget::text::StyleFn","iced::overlay::menu::StyleFn","iced::widget::button::StyleFn","iced::widget::checkbox::StyleFn","iced::widget::container::StyleFn","iced::widget::pane_grid::StyleFn","iced::widget::pick_list::StyleFn","iced::widget::progress_bar::StyleFn","iced::widget::radio::StyleFn","iced::widget::rule::StyleFn","iced::widget::scrollable::StyleFn","iced::widget::slider::StyleFn","iced::widget::text_editor::StyleFn","iced::widget::text_input::StyleFn","iced::widget::toggler::StyleFn","iced::widget::svg::StyleFn","iced::widget::qr_code::StyleFn"],["
§

impl<T> AsyncBufRead for Box<T>
where\n T: AsyncBufRead + Unpin + ?Sized,

§

fn poll_fill_buf(\n self: Pin<&mut Box<T>>,\n cx: &mut Context<'_>,\n) -> Poll<Result<&[u8], Error>>

Attempt to return the contents of the internal buffer, filling it with more data\nfrom the inner reader if it is empty. Read more
§

fn consume(self: Pin<&mut Box<T>>, amt: usize)

Tells this buffer that amt bytes have been consumed from the buffer,\nso they should no longer be returned in calls to poll_read. Read more
","AsyncBufRead","iced::widget::text::StyleFn","iced::overlay::menu::StyleFn","iced::widget::button::StyleFn","iced::widget::checkbox::StyleFn","iced::widget::container::StyleFn","iced::widget::pane_grid::StyleFn","iced::widget::pick_list::StyleFn","iced::widget::progress_bar::StyleFn","iced::widget::radio::StyleFn","iced::widget::rule::StyleFn","iced::widget::scrollable::StyleFn","iced::widget::slider::StyleFn","iced::widget::text_editor::StyleFn","iced::widget::text_input::StyleFn","iced::widget::toggler::StyleFn","iced::widget::svg::StyleFn","iced::widget::qr_code::StyleFn"],["
§

impl<T> AsyncBufRead for Box<T>
where\n T: AsyncBufRead + Unpin + ?Sized,

§

fn poll_fill_buf(\n self: Pin<&mut Box<T>>,\n cx: &mut Context<'_>,\n) -> Poll<Result<&[u8], Error>>

Attempts to return the contents of the internal buffer, filling it with more data\nfrom the inner reader if it is empty. Read more
§

fn consume(self: Pin<&mut Box<T>>, amt: usize)

Tells this buffer that amt bytes have been consumed from the buffer,\nso they should no longer be returned in calls to poll_read. Read more
","AsyncBufRead","iced::widget::text::StyleFn","iced::overlay::menu::StyleFn","iced::widget::button::StyleFn","iced::widget::checkbox::StyleFn","iced::widget::container::StyleFn","iced::widget::pane_grid::StyleFn","iced::widget::pick_list::StyleFn","iced::widget::progress_bar::StyleFn","iced::widget::radio::StyleFn","iced::widget::rule::StyleFn","iced::widget::scrollable::StyleFn","iced::widget::slider::StyleFn","iced::widget::text_editor::StyleFn","iced::widget::text_input::StyleFn","iced::widget::toggler::StyleFn","iced::widget::svg::StyleFn","iced::widget::qr_code::StyleFn"],["
1.85.0 · Source§

impl<Args, F, A> AsyncFn<Args> for Box<F, A>
where\n Args: Tuple,\n F: AsyncFn<Args> + ?Sized,\n A: Allocator,

Source§

extern "rust-call" fn async_call(\n &self,\n args: Args,\n) -> <Box<F, A> as AsyncFnMut<Args>>::CallRefFuture<'_>

🔬This is a nightly-only experimental API. (async_fn_traits)
Call the AsyncFn, returning a future which may borrow from the called closure.
","AsyncFn","iced::widget::text::StyleFn","iced::overlay::menu::StyleFn","iced::widget::button::StyleFn","iced::widget::checkbox::StyleFn","iced::widget::container::StyleFn","iced::widget::pane_grid::StyleFn","iced::widget::pick_list::StyleFn","iced::widget::progress_bar::StyleFn","iced::widget::radio::StyleFn","iced::widget::rule::StyleFn","iced::widget::scrollable::StyleFn","iced::widget::slider::StyleFn","iced::widget::text_editor::StyleFn","iced::widget::text_input::StyleFn","iced::widget::toggler::StyleFn","iced::widget::svg::StyleFn","iced::widget::qr_code::StyleFn"],["
1.85.0 · Source§

impl<Args, F, A> AsyncFnMut<Args> for Box<F, A>
where\n Args: Tuple,\n F: AsyncFnMut<Args> + ?Sized,\n A: Allocator,

Source§

type CallRefFuture<'a> = <F as AsyncFnMut<Args>>::CallRefFuture<'a>\nwhere\n Box<F, A>: 'a

🔬This is a nightly-only experimental API. (async_fn_traits)
Source§

extern "rust-call" fn async_call_mut(\n &mut self,\n args: Args,\n) -> <Box<F, A> as AsyncFnMut<Args>>::CallRefFuture<'_>

🔬This is a nightly-only experimental API. (async_fn_traits)
Call the AsyncFnMut, returning a future which may borrow from the called closure.
","AsyncFnMut","iced::widget::text::StyleFn","iced::overlay::menu::StyleFn","iced::widget::button::StyleFn","iced::widget::checkbox::StyleFn","iced::widget::container::StyleFn","iced::widget::pane_grid::StyleFn","iced::widget::pick_list::StyleFn","iced::widget::progress_bar::StyleFn","iced::widget::radio::StyleFn","iced::widget::rule::StyleFn","iced::widget::scrollable::StyleFn","iced::widget::slider::StyleFn","iced::widget::text_editor::StyleFn","iced::widget::text_input::StyleFn","iced::widget::toggler::StyleFn","iced::widget::svg::StyleFn","iced::widget::qr_code::StyleFn"],["
1.85.0 · Source§

impl<Args, F, A> AsyncFnOnce<Args> for Box<F, A>
where\n Args: Tuple,\n F: AsyncFnOnce<Args> + ?Sized,\n A: Allocator,

Source§

type Output = <F as AsyncFnOnce<Args>>::Output

🔬This is a nightly-only experimental API. (async_fn_traits)
Output type of the called closure’s future.
Source§

type CallOnceFuture = <F as AsyncFnOnce<Args>>::CallOnceFuture

🔬This is a nightly-only experimental API. (async_fn_traits)
Future returned by AsyncFnOnce::async_call_once.
Source§

extern "rust-call" fn async_call_once(\n self,\n args: Args,\n) -> <Box<F, A> as AsyncFnOnce<Args>>::CallOnceFuture

🔬This is a nightly-only experimental API. (async_fn_traits)
Call the AsyncFnOnce, returning a future which may move out of the called closure.
","AsyncFnOnce","iced::widget::text::StyleFn","iced::overlay::menu::StyleFn","iced::widget::button::StyleFn","iced::widget::checkbox::StyleFn","iced::widget::container::StyleFn","iced::widget::pane_grid::StyleFn","iced::widget::pick_list::StyleFn","iced::widget::progress_bar::StyleFn","iced::widget::radio::StyleFn","iced::widget::rule::StyleFn","iced::widget::scrollable::StyleFn","iced::widget::slider::StyleFn","iced::widget::text_editor::StyleFn","iced::widget::text_input::StyleFn","iced::widget::toggler::StyleFn","iced::widget::svg::StyleFn","iced::widget::qr_code::StyleFn"],["
Source§

impl<S> AsyncIterator for Box<S>
where\n S: AsyncIterator + Unpin + ?Sized,

Source§

type Item = <S as AsyncIterator>::Item

🔬This is a nightly-only experimental API. (async_iterator)
The type of items yielded by the async iterator.
Source§

fn poll_next(\n self: Pin<&mut Box<S>>,\n cx: &mut Context<'_>,\n) -> Poll<Option<<Box<S> as AsyncIterator>::Item>>

🔬This is a nightly-only experimental API. (async_iterator)
Attempts to pull out the next value of this async iterator, registering the\ncurrent task for wakeup if the value is not yet available, and returning\nNone if the async iterator is exhausted. Read more
Source§

fn size_hint(&self) -> (usize, Option<usize>)

🔬This is a nightly-only experimental API. (async_iterator)
Returns the bounds on the remaining length of the async iterator. Read more
","AsyncIterator","iced::widget::text::StyleFn","iced::overlay::menu::StyleFn","iced::widget::button::StyleFn","iced::widget::checkbox::StyleFn","iced::widget::container::StyleFn","iced::widget::pane_grid::StyleFn","iced::widget::pick_list::StyleFn","iced::widget::progress_bar::StyleFn","iced::widget::radio::StyleFn","iced::widget::rule::StyleFn","iced::widget::scrollable::StyleFn","iced::widget::slider::StyleFn","iced::widget::text_editor::StyleFn","iced::widget::text_input::StyleFn","iced::widget::toggler::StyleFn","iced::widget::svg::StyleFn","iced::widget::qr_code::StyleFn"],["
§

impl<T> AsyncRead for Box<T>
where\n T: AsyncRead + Unpin + ?Sized,

§

fn poll_read(\n self: Pin<&mut Box<T>>,\n cx: &mut Context<'_>,\n buf: &mut ReadBuf<'_>,\n) -> Poll<Result<(), Error>>

Attempts to read from the AsyncRead into buf. Read more
","AsyncRead","iced::widget::text::StyleFn","iced::overlay::menu::StyleFn","iced::widget::button::StyleFn","iced::widget::checkbox::StyleFn","iced::widget::container::StyleFn","iced::widget::pane_grid::StyleFn","iced::widget::pick_list::StyleFn","iced::widget::progress_bar::StyleFn","iced::widget::radio::StyleFn","iced::widget::rule::StyleFn","iced::widget::scrollable::StyleFn","iced::widget::slider::StyleFn","iced::widget::text_editor::StyleFn","iced::widget::text_input::StyleFn","iced::widget::toggler::StyleFn","iced::widget::svg::StyleFn","iced::widget::qr_code::StyleFn"],["
§

impl<T> AsyncRead for Box<T>
where\n T: AsyncRead + Unpin + ?Sized,

§

fn poll_read(\n self: Pin<&mut Box<T>>,\n cx: &mut Context<'_>,\n buf: &mut [u8],\n) -> Poll<Result<usize, Error>>

Attempt to read from the AsyncRead into buf. Read more
§

fn poll_read_vectored(\n self: Pin<&mut Box<T>>,\n cx: &mut Context<'_>,\n bufs: &mut [IoSliceMut<'_>],\n) -> Poll<Result<usize, Error>>

Attempt to read from the AsyncRead into bufs using vectored\nIO operations. Read more
","AsyncRead","iced::widget::text::StyleFn","iced::overlay::menu::StyleFn","iced::widget::button::StyleFn","iced::widget::checkbox::StyleFn","iced::widget::container::StyleFn","iced::widget::pane_grid::StyleFn","iced::widget::pick_list::StyleFn","iced::widget::progress_bar::StyleFn","iced::widget::radio::StyleFn","iced::widget::rule::StyleFn","iced::widget::scrollable::StyleFn","iced::widget::slider::StyleFn","iced::widget::text_editor::StyleFn","iced::widget::text_input::StyleFn","iced::widget::toggler::StyleFn","iced::widget::svg::StyleFn","iced::widget::qr_code::StyleFn"],["
§

impl<T> AsyncSeek for Box<T>
where\n T: AsyncSeek + Unpin + ?Sized,

§

fn poll_seek(\n self: Pin<&mut Box<T>>,\n cx: &mut Context<'_>,\n pos: SeekFrom,\n) -> Poll<Result<u64, Error>>

Attempt to seek to an offset, in bytes, in a stream. Read more
","AsyncSeek","iced::widget::text::StyleFn","iced::overlay::menu::StyleFn","iced::widget::button::StyleFn","iced::widget::checkbox::StyleFn","iced::widget::container::StyleFn","iced::widget::pane_grid::StyleFn","iced::widget::pick_list::StyleFn","iced::widget::progress_bar::StyleFn","iced::widget::radio::StyleFn","iced::widget::rule::StyleFn","iced::widget::scrollable::StyleFn","iced::widget::slider::StyleFn","iced::widget::text_editor::StyleFn","iced::widget::text_input::StyleFn","iced::widget::toggler::StyleFn","iced::widget::svg::StyleFn","iced::widget::qr_code::StyleFn"],["
§

impl<T> AsyncSeek for Box<T>
where\n T: AsyncSeek + Unpin + ?Sized,

§

fn start_seek(self: Pin<&mut Box<T>>, pos: SeekFrom) -> Result<(), Error>

Attempts to seek to an offset, in bytes, in a stream. Read more
§

fn poll_complete(\n self: Pin<&mut Box<T>>,\n cx: &mut Context<'_>,\n) -> Poll<Result<u64, Error>>

Waits for a seek operation to complete. Read more
","AsyncSeek","iced::widget::text::StyleFn","iced::overlay::menu::StyleFn","iced::widget::button::StyleFn","iced::widget::checkbox::StyleFn","iced::widget::container::StyleFn","iced::widget::pane_grid::StyleFn","iced::widget::pick_list::StyleFn","iced::widget::progress_bar::StyleFn","iced::widget::radio::StyleFn","iced::widget::rule::StyleFn","iced::widget::scrollable::StyleFn","iced::widget::slider::StyleFn","iced::widget::text_editor::StyleFn","iced::widget::text_input::StyleFn","iced::widget::toggler::StyleFn","iced::widget::svg::StyleFn","iced::widget::qr_code::StyleFn"],["
§

impl<T> AsyncWrite for Box<T>
where\n T: AsyncWrite + Unpin + ?Sized,

§

fn poll_write(\n self: Pin<&mut Box<T>>,\n cx: &mut Context<'_>,\n buf: &[u8],\n) -> Poll<Result<usize, Error>>

Attempt to write bytes from buf into the object. Read more
§

fn poll_write_vectored(\n self: Pin<&mut Box<T>>,\n cx: &mut Context<'_>,\n bufs: &[IoSlice<'_>],\n) -> Poll<Result<usize, Error>>

Attempt to write bytes from bufs into the object using vectored\nIO operations. Read more
§

fn poll_flush(\n self: Pin<&mut Box<T>>,\n cx: &mut Context<'_>,\n) -> Poll<Result<(), Error>>

Attempt to flush the object, ensuring that any buffered data reach\ntheir destination. Read more
§

fn poll_close(\n self: Pin<&mut Box<T>>,\n cx: &mut Context<'_>,\n) -> Poll<Result<(), Error>>

Attempt to close the object. Read more
","AsyncWrite","iced::widget::text::StyleFn","iced::overlay::menu::StyleFn","iced::widget::button::StyleFn","iced::widget::checkbox::StyleFn","iced::widget::container::StyleFn","iced::widget::pane_grid::StyleFn","iced::widget::pick_list::StyleFn","iced::widget::progress_bar::StyleFn","iced::widget::radio::StyleFn","iced::widget::rule::StyleFn","iced::widget::scrollable::StyleFn","iced::widget::slider::StyleFn","iced::widget::text_editor::StyleFn","iced::widget::text_input::StyleFn","iced::widget::toggler::StyleFn","iced::widget::svg::StyleFn","iced::widget::qr_code::StyleFn"],["
§

impl<T> AsyncWrite for Box<T>
where\n T: AsyncWrite + Unpin + ?Sized,

§

fn poll_write(\n self: Pin<&mut Box<T>>,\n cx: &mut Context<'_>,\n buf: &[u8],\n) -> Poll<Result<usize, Error>>

Attempt to write bytes from buf into the object. Read more
§

fn poll_write_vectored(\n self: Pin<&mut Box<T>>,\n cx: &mut Context<'_>,\n bufs: &[IoSlice<'_>],\n) -> Poll<Result<usize, Error>>

Like poll_write, except that it writes from a slice of buffers. Read more
§

fn is_write_vectored(&self) -> bool

Determines if this writer has an efficient poll_write_vectored\nimplementation. Read more
§

fn poll_flush(\n self: Pin<&mut Box<T>>,\n cx: &mut Context<'_>,\n) -> Poll<Result<(), Error>>

Attempts to flush the object, ensuring that any buffered data reach\ntheir destination. Read more
§

fn poll_shutdown(\n self: Pin<&mut Box<T>>,\n cx: &mut Context<'_>,\n) -> Poll<Result<(), Error>>

Initiates or attempts to shut down this writer, returning success when\nthe I/O connection has completely shut down. Read more
","AsyncWrite","iced::widget::text::StyleFn","iced::overlay::menu::StyleFn","iced::widget::button::StyleFn","iced::widget::checkbox::StyleFn","iced::widget::container::StyleFn","iced::widget::pane_grid::StyleFn","iced::widget::pick_list::StyleFn","iced::widget::progress_bar::StyleFn","iced::widget::radio::StyleFn","iced::widget::rule::StyleFn","iced::widget::scrollable::StyleFn","iced::widget::slider::StyleFn","iced::widget::text_editor::StyleFn","iced::widget::text_input::StyleFn","iced::widget::toggler::StyleFn","iced::widget::svg::StyleFn","iced::widget::qr_code::StyleFn"],["
1.1.0 · Source§

impl<T, A> Borrow<T> for Box<T, A>
where\n A: Allocator,\n T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
","Borrow","iced::widget::text::StyleFn","iced::overlay::menu::StyleFn","iced::widget::button::StyleFn","iced::widget::checkbox::StyleFn","iced::widget::container::StyleFn","iced::widget::pane_grid::StyleFn","iced::widget::pick_list::StyleFn","iced::widget::progress_bar::StyleFn","iced::widget::radio::StyleFn","iced::widget::rule::StyleFn","iced::widget::scrollable::StyleFn","iced::widget::slider::StyleFn","iced::widget::text_editor::StyleFn","iced::widget::text_input::StyleFn","iced::widget::toggler::StyleFn","iced::widget::svg::StyleFn","iced::widget::qr_code::StyleFn"],["
1.1.0 · Source§

impl<T, A> BorrowMut<T> for Box<T, A>
where\n A: Allocator,\n T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
","BorrowMut","iced::widget::text::StyleFn","iced::overlay::menu::StyleFn","iced::widget::button::StyleFn","iced::widget::checkbox::StyleFn","iced::widget::container::StyleFn","iced::widget::pane_grid::StyleFn","iced::widget::pick_list::StyleFn","iced::widget::progress_bar::StyleFn","iced::widget::radio::StyleFn","iced::widget::rule::StyleFn","iced::widget::scrollable::StyleFn","iced::widget::slider::StyleFn","iced::widget::text_editor::StyleFn","iced::widget::text_input::StyleFn","iced::widget::toggler::StyleFn","iced::widget::svg::StyleFn","iced::widget::qr_code::StyleFn"],["
§

impl<M, P> BoundDataProvider<M> for Box<P>
where\n M: DataMarker,\n P: BoundDataProvider<M> + ?Sized,

§

fn load_bound(&self, req: DataRequest<'_>) -> Result<DataResponse<M>, DataError>

Query the provider for data, returning the result. Read more
§

fn bound_key(&self) -> DataKey

Returns the [DataKey] that this provider uses for loading data.
","BoundDataProvider","iced::widget::text::StyleFn","iced::overlay::menu::StyleFn","iced::widget::button::StyleFn","iced::widget::checkbox::StyleFn","iced::widget::container::StyleFn","iced::widget::pane_grid::StyleFn","iced::widget::pick_list::StyleFn","iced::widget::progress_bar::StyleFn","iced::widget::radio::StyleFn","iced::widget::rule::StyleFn","iced::widget::scrollable::StyleFn","iced::widget::slider::StyleFn","iced::widget::text_editor::StyleFn","iced::widget::text_input::StyleFn","iced::widget::toggler::StyleFn","iced::widget::svg::StyleFn","iced::widget::qr_code::StyleFn"],["
Source§

impl<T> Box<T>
where\n T: ?Sized,

1.4.0 · Source

pub unsafe fn from_raw(raw: *mut T) -> Box<T>

Constructs a box from a raw pointer.

\n

After calling this function, the raw pointer is owned by the\nresulting Box. Specifically, the Box destructor will call\nthe destructor of T and free the allocated memory. For this\nto be safe, the memory must have been allocated in accordance\nwith the memory layout used by Box .

\n
§Safety
\n

This function is unsafe because improper use may lead to\nmemory problems. For example, a double-free may occur if the\nfunction is called twice on the same raw pointer.

\n

The raw pointer must point to a block of memory allocated by the global allocator.

\n

The safety conditions are described in the memory layout section.

\n
§Examples
\n

Recreate a Box which was previously converted to a raw pointer\nusing Box::into_raw:

\n\n
let x = Box::new(5);\nlet ptr = Box::into_raw(x);\nlet x = unsafe { Box::from_raw(ptr) };
\n

Manually create a Box from scratch by using the global allocator:

\n\n
use std::alloc::{alloc, Layout};\n\nunsafe {\n    let ptr = alloc(Layout::new::<i32>()) as *mut i32;\n    // In general .write is required to avoid attempting to destruct\n    // the (uninitialized) previous contents of `ptr`, though for this\n    // simple example `*ptr = 5` would have worked as well.\n    ptr.write(5);\n    let x = Box::from_raw(ptr);\n}
\n
Source

pub unsafe fn from_non_null(ptr: NonNull<T>) -> Box<T>

🔬This is a nightly-only experimental API. (box_vec_non_null)

Constructs a box from a NonNull pointer.

\n

After calling this function, the NonNull pointer is owned by\nthe resulting Box. Specifically, the Box destructor will call\nthe destructor of T and free the allocated memory. For this\nto be safe, the memory must have been allocated in accordance\nwith the memory layout used by Box .

\n
§Safety
\n

This function is unsafe because improper use may lead to\nmemory problems. For example, a double-free may occur if the\nfunction is called twice on the same NonNull pointer.

\n

The safety conditions are described in the memory layout section.

\n
§Examples
\n

Recreate a Box which was previously converted to a NonNull\npointer using Box::into_non_null:

\n\n
#![feature(box_vec_non_null)]\n\nlet x = Box::new(5);\nlet non_null = Box::into_non_null(x);\nlet x = unsafe { Box::from_non_null(non_null) };
\n

Manually create a Box from scratch by using the global allocator:

\n\n
#![feature(box_vec_non_null)]\n\nuse std::alloc::{alloc, Layout};\nuse std::ptr::NonNull;\n\nunsafe {\n    let non_null = NonNull::new(alloc(Layout::new::<i32>()).cast::<i32>())\n        .expect(\"allocation failed\");\n    // In general .write is required to avoid attempting to destruct\n    // the (uninitialized) previous contents of `non_null`.\n    non_null.write(5);\n    let x = Box::from_non_null(non_null);\n}
\n
",0,"iced::widget::text::StyleFn"],["
Source§

impl<T> Box<T>
where\n T: ?Sized,

1.4.0 · Source

pub unsafe fn from_raw(raw: *mut T) -> Box<T>

Available on crate feature advanced only.

Constructs a box from a raw pointer.

\n

After calling this function, the raw pointer is owned by the\nresulting Box. Specifically, the Box destructor will call\nthe destructor of T and free the allocated memory. For this\nto be safe, the memory must have been allocated in accordance\nwith the memory layout used by Box .

\n
§Safety
\n

This function is unsafe because improper use may lead to\nmemory problems. For example, a double-free may occur if the\nfunction is called twice on the same raw pointer.

\n

The raw pointer must point to a block of memory allocated by the global allocator.

\n

The safety conditions are described in the memory layout section.

\n
§Examples
\n

Recreate a Box which was previously converted to a raw pointer\nusing Box::into_raw:

\n\n
let x = Box::new(5);\nlet ptr = Box::into_raw(x);\nlet x = unsafe { Box::from_raw(ptr) };
\n

Manually create a Box from scratch by using the global allocator:

\n\n
use std::alloc::{alloc, Layout};\n\nunsafe {\n    let ptr = alloc(Layout::new::<i32>()) as *mut i32;\n    // In general .write is required to avoid attempting to destruct\n    // the (uninitialized) previous contents of `ptr`, though for this\n    // simple example `*ptr = 5` would have worked as well.\n    ptr.write(5);\n    let x = Box::from_raw(ptr);\n}
\n
Source

pub unsafe fn from_non_null(ptr: NonNull<T>) -> Box<T>

🔬This is a nightly-only experimental API. (box_vec_non_null)
Available on crate feature advanced only.

Constructs a box from a NonNull pointer.

\n

After calling this function, the NonNull pointer is owned by\nthe resulting Box. Specifically, the Box destructor will call\nthe destructor of T and free the allocated memory. For this\nto be safe, the memory must have been allocated in accordance\nwith the memory layout used by Box .

\n
§Safety
\n

This function is unsafe because improper use may lead to\nmemory problems. For example, a double-free may occur if the\nfunction is called twice on the same NonNull pointer.

\n

The safety conditions are described in the memory layout section.

\n
§Examples
\n

Recreate a Box which was previously converted to a NonNull\npointer using Box::into_non_null:

\n\n
#![feature(box_vec_non_null)]\n\nlet x = Box::new(5);\nlet non_null = Box::into_non_null(x);\nlet x = unsafe { Box::from_non_null(non_null) };
\n

Manually create a Box from scratch by using the global allocator:

\n\n
#![feature(box_vec_non_null)]\n\nuse std::alloc::{alloc, Layout};\nuse std::ptr::NonNull;\n\nunsafe {\n    let non_null = NonNull::new(alloc(Layout::new::<i32>()).cast::<i32>())\n        .expect(\"allocation failed\");\n    // In general .write is required to avoid attempting to destruct\n    // the (uninitialized) previous contents of `non_null`.\n    non_null.write(5);\n    let x = Box::from_non_null(non_null);\n}
\n
",0,"iced::overlay::menu::StyleFn","iced::widget::button::StyleFn","iced::widget::checkbox::StyleFn","iced::widget::container::StyleFn","iced::widget::pane_grid::StyleFn","iced::widget::pick_list::StyleFn","iced::widget::progress_bar::StyleFn","iced::widget::radio::StyleFn","iced::widget::rule::StyleFn","iced::widget::scrollable::StyleFn","iced::widget::slider::StyleFn","iced::widget::text_editor::StyleFn","iced::widget::text_input::StyleFn","iced::widget::toggler::StyleFn","iced::widget::svg::StyleFn","iced::widget::qr_code::StyleFn"],["
Source§

impl<T> Box<T>

1.0.0 · Source

pub fn new(x: T) -> Box<T>

Available on crate feature advanced and non-no_global_oom_handling only.

Allocates memory on the heap and then places x into it.

\n

This doesn’t actually allocate if T is zero-sized.

\n
§Examples
\n
let five = Box::new(5);
\n
1.82.0 · Source

pub fn new_uninit() -> Box<MaybeUninit<T>>

Available on crate feature advanced and non-no_global_oom_handling only.

Constructs a new box with uninitialized contents.

\n
§Examples
\n
let mut five = Box::<u32>::new_uninit();\n\nlet five = unsafe {\n    // Deferred initialization:\n    five.as_mut_ptr().write(5);\n\n    five.assume_init()\n};\n\nassert_eq!(*five, 5)
\n
Source

pub fn new_zeroed() -> Box<MaybeUninit<T>>

🔬This is a nightly-only experimental API. (new_zeroed_alloc)
Available on crate feature advanced and non-no_global_oom_handling only.

Constructs a new Box with uninitialized contents, with the memory\nbeing filled with 0 bytes.

\n

See MaybeUninit::zeroed for examples of correct and incorrect usage\nof this method.

\n
§Examples
\n
#![feature(new_zeroed_alloc)]\n\nlet zero = Box::<u32>::new_zeroed();\nlet zero = unsafe { zero.assume_init() };\n\nassert_eq!(*zero, 0)
\n
1.33.0 · Source

pub fn pin(x: T) -> Pin<Box<T>>

Available on crate feature advanced and non-no_global_oom_handling only.

Constructs a new Pin<Box<T>>. If T does not implement Unpin, then\nx will be pinned in memory and unable to be moved.

\n

Constructing and pinning of the Box can also be done in two steps: Box::pin(x)\ndoes the same as Box::into_pin(Box::new(x)). Consider using\ninto_pin if you already have a Box<T>, or if you want to\nconstruct a (pinned) Box in a different way than with Box::new.

\n
Source

pub fn try_new(x: T) -> Result<Box<T>, AllocError>

🔬This is a nightly-only experimental API. (allocator_api)
Available on crate feature advanced only.

Allocates memory on the heap then places x into it,\nreturning an error if the allocation fails

\n

This doesn’t actually allocate if T is zero-sized.

\n
§Examples
\n
#![feature(allocator_api)]\n\nlet five = Box::try_new(5)?;
\n
Source

pub fn try_new_uninit() -> Result<Box<MaybeUninit<T>>, AllocError>

🔬This is a nightly-only experimental API. (allocator_api)
Available on crate feature advanced only.

Constructs a new box with uninitialized contents on the heap,\nreturning an error if the allocation fails

\n
§Examples
\n
#![feature(allocator_api)]\n\nlet mut five = Box::<u32>::try_new_uninit()?;\n\nlet five = unsafe {\n    // Deferred initialization:\n    five.as_mut_ptr().write(5);\n\n    five.assume_init()\n};\n\nassert_eq!(*five, 5);
\n
Source

pub fn try_new_zeroed() -> Result<Box<MaybeUninit<T>>, AllocError>

🔬This is a nightly-only experimental API. (allocator_api)
Available on crate feature advanced only.

Constructs a new Box with uninitialized contents, with the memory\nbeing filled with 0 bytes on the heap

\n

See MaybeUninit::zeroed for examples of correct and incorrect usage\nof this method.

\n
§Examples
\n
#![feature(allocator_api)]\n\nlet zero = Box::<u32>::try_new_zeroed()?;\nlet zero = unsafe { zero.assume_init() };\n\nassert_eq!(*zero, 0);
\n
",0,"iced::overlay::menu::StyleFn","iced::widget::button::StyleFn","iced::widget::checkbox::StyleFn","iced::widget::container::StyleFn","iced::widget::pane_grid::StyleFn","iced::widget::pick_list::StyleFn","iced::widget::progress_bar::StyleFn","iced::widget::radio::StyleFn","iced::widget::rule::StyleFn","iced::widget::scrollable::StyleFn","iced::widget::slider::StyleFn","iced::widget::text_editor::StyleFn","iced::widget::text_input::StyleFn","iced::widget::toggler::StyleFn","iced::widget::svg::StyleFn","iced::widget::qr_code::StyleFn"],["
Source§

impl<T> Box<T>

1.0.0 · Source

pub fn new(x: T) -> Box<T>

Available on non-no_global_oom_handling only.

Allocates memory on the heap and then places x into it.

\n

This doesn’t actually allocate if T is zero-sized.

\n
§Examples
\n
let five = Box::new(5);
\n
1.82.0 · Source

pub fn new_uninit() -> Box<MaybeUninit<T>>

Available on non-no_global_oom_handling only.

Constructs a new box with uninitialized contents.

\n
§Examples
\n
let mut five = Box::<u32>::new_uninit();\n\nlet five = unsafe {\n    // Deferred initialization:\n    five.as_mut_ptr().write(5);\n\n    five.assume_init()\n};\n\nassert_eq!(*five, 5)
\n
Source

pub fn new_zeroed() -> Box<MaybeUninit<T>>

🔬This is a nightly-only experimental API. (new_zeroed_alloc)
Available on non-no_global_oom_handling only.

Constructs a new Box with uninitialized contents, with the memory\nbeing filled with 0 bytes.

\n

See MaybeUninit::zeroed for examples of correct and incorrect usage\nof this method.

\n
§Examples
\n
#![feature(new_zeroed_alloc)]\n\nlet zero = Box::<u32>::new_zeroed();\nlet zero = unsafe { zero.assume_init() };\n\nassert_eq!(*zero, 0)
\n
1.33.0 · Source

pub fn pin(x: T) -> Pin<Box<T>>

Available on non-no_global_oom_handling only.

Constructs a new Pin<Box<T>>. If T does not implement Unpin, then\nx will be pinned in memory and unable to be moved.

\n

Constructing and pinning of the Box can also be done in two steps: Box::pin(x)\ndoes the same as Box::into_pin(Box::new(x)). Consider using\ninto_pin if you already have a Box<T>, or if you want to\nconstruct a (pinned) Box in a different way than with Box::new.

\n
Source

pub fn try_new(x: T) -> Result<Box<T>, AllocError>

🔬This is a nightly-only experimental API. (allocator_api)

Allocates memory on the heap then places x into it,\nreturning an error if the allocation fails

\n

This doesn’t actually allocate if T is zero-sized.

\n
§Examples
\n
#![feature(allocator_api)]\n\nlet five = Box::try_new(5)?;
\n
Source

pub fn try_new_uninit() -> Result<Box<MaybeUninit<T>>, AllocError>

🔬This is a nightly-only experimental API. (allocator_api)

Constructs a new box with uninitialized contents on the heap,\nreturning an error if the allocation fails

\n
§Examples
\n
#![feature(allocator_api)]\n\nlet mut five = Box::<u32>::try_new_uninit()?;\n\nlet five = unsafe {\n    // Deferred initialization:\n    five.as_mut_ptr().write(5);\n\n    five.assume_init()\n};\n\nassert_eq!(*five, 5);
\n
Source

pub fn try_new_zeroed() -> Result<Box<MaybeUninit<T>>, AllocError>

🔬This is a nightly-only experimental API. (allocator_api)

Constructs a new Box with uninitialized contents, with the memory\nbeing filled with 0 bytes on the heap

\n

See MaybeUninit::zeroed for examples of correct and incorrect usage\nof this method.

\n
§Examples
\n
#![feature(allocator_api)]\n\nlet zero = Box::<u32>::try_new_zeroed()?;\nlet zero = unsafe { zero.assume_init() };\n\nassert_eq!(*zero, 0);
\n
",0,"iced::widget::text::StyleFn"],["
Source§

impl<T, A> Box<T, A>
where\n A: Allocator,\n T: ?Sized,

Source

pub const unsafe fn from_raw_in(raw: *mut T, alloc: A) -> Box<T, A>

🔬This is a nightly-only experimental API. (allocator_api)

Constructs a box from a raw pointer in the given allocator.

\n

After calling this function, the raw pointer is owned by the\nresulting Box. Specifically, the Box destructor will call\nthe destructor of T and free the allocated memory. For this\nto be safe, the memory must have been allocated in accordance\nwith the memory layout used by Box .

\n
§Safety
\n

This function is unsafe because improper use may lead to\nmemory problems. For example, a double-free may occur if the\nfunction is called twice on the same raw pointer.

\n

The raw pointer must point to a block of memory allocated by alloc

\n
§Examples
\n

Recreate a Box which was previously converted to a raw pointer\nusing Box::into_raw_with_allocator:

\n\n
#![feature(allocator_api)]\n\nuse std::alloc::System;\n\nlet x = Box::new_in(5, System);\nlet (ptr, alloc) = Box::into_raw_with_allocator(x);\nlet x = unsafe { Box::from_raw_in(ptr, alloc) };
\n

Manually create a Box from scratch by using the system allocator:

\n\n
#![feature(allocator_api, slice_ptr_get)]\n\nuse std::alloc::{Allocator, Layout, System};\n\nunsafe {\n    let ptr = System.allocate(Layout::new::<i32>())?.as_mut_ptr() as *mut i32;\n    // In general .write is required to avoid attempting to destruct\n    // the (uninitialized) previous contents of `ptr`, though for this\n    // simple example `*ptr = 5` would have worked as well.\n    ptr.write(5);\n    let x = Box::from_raw_in(ptr, System);\n}
\n
Source

pub const unsafe fn from_non_null_in(raw: NonNull<T>, alloc: A) -> Box<T, A>

🔬This is a nightly-only experimental API. (allocator_api)

Constructs a box from a NonNull pointer in the given allocator.

\n

After calling this function, the NonNull pointer is owned by\nthe resulting Box. Specifically, the Box destructor will call\nthe destructor of T and free the allocated memory. For this\nto be safe, the memory must have been allocated in accordance\nwith the memory layout used by Box .

\n
§Safety
\n

This function is unsafe because improper use may lead to\nmemory problems. For example, a double-free may occur if the\nfunction is called twice on the same raw pointer.

\n
§Examples
\n

Recreate a Box which was previously converted to a NonNull pointer\nusing Box::into_non_null_with_allocator:

\n\n
#![feature(allocator_api, box_vec_non_null)]\n\nuse std::alloc::System;\n\nlet x = Box::new_in(5, System);\nlet (non_null, alloc) = Box::into_non_null_with_allocator(x);\nlet x = unsafe { Box::from_non_null_in(non_null, alloc) };
\n

Manually create a Box from scratch by using the system allocator:

\n\n
#![feature(allocator_api, box_vec_non_null, slice_ptr_get)]\n\nuse std::alloc::{Allocator, Layout, System};\n\nunsafe {\n    let non_null = System.allocate(Layout::new::<i32>())?.cast::<i32>();\n    // In general .write is required to avoid attempting to destruct\n    // the (uninitialized) previous contents of `non_null`.\n    non_null.write(5);\n    let x = Box::from_non_null_in(non_null, System);\n}
\n
1.4.0 · Source

pub fn into_raw(b: Box<T, A>) -> *mut T

Consumes the Box, returning a wrapped raw pointer.

\n

The pointer will be properly aligned and non-null.

\n

After calling this function, the caller is responsible for the\nmemory previously managed by the Box. In particular, the\ncaller should properly destroy T and release the memory, taking\ninto account the memory layout used by Box. The easiest way to\ndo this is to convert the raw pointer back into a Box with the\nBox::from_raw function, allowing the Box destructor to perform\nthe cleanup.

\n

Note: this is an associated function, which means that you have\nto call it as Box::into_raw(b) instead of b.into_raw(). This\nis so that there is no conflict with a method on the inner type.

\n
§Examples
\n

Converting the raw pointer back into a Box with Box::from_raw\nfor automatic cleanup:

\n\n
let x = Box::new(String::from(\"Hello\"));\nlet ptr = Box::into_raw(x);\nlet x = unsafe { Box::from_raw(ptr) };
\n

Manual cleanup by explicitly running the destructor and deallocating\nthe memory:

\n\n
use std::alloc::{dealloc, Layout};\nuse std::ptr;\n\nlet x = Box::new(String::from(\"Hello\"));\nlet ptr = Box::into_raw(x);\nunsafe {\n    ptr::drop_in_place(ptr);\n    dealloc(ptr as *mut u8, Layout::new::<String>());\n}
\n

Note: This is equivalent to the following:

\n\n
let x = Box::new(String::from(\"Hello\"));\nlet ptr = Box::into_raw(x);\nunsafe {\n    drop(Box::from_raw(ptr));\n}
\n
Source

pub fn into_non_null(b: Box<T, A>) -> NonNull<T>

🔬This is a nightly-only experimental API. (box_vec_non_null)

Consumes the Box, returning a wrapped NonNull pointer.

\n

The pointer will be properly aligned.

\n

After calling this function, the caller is responsible for the\nmemory previously managed by the Box. In particular, the\ncaller should properly destroy T and release the memory, taking\ninto account the memory layout used by Box. The easiest way to\ndo this is to convert the NonNull pointer back into a Box with the\nBox::from_non_null function, allowing the Box destructor to\nperform the cleanup.

\n

Note: this is an associated function, which means that you have\nto call it as Box::into_non_null(b) instead of b.into_non_null().\nThis is so that there is no conflict with a method on the inner type.

\n
§Examples
\n

Converting the NonNull pointer back into a Box with Box::from_non_null\nfor automatic cleanup:

\n\n
#![feature(box_vec_non_null)]\n\nlet x = Box::new(String::from(\"Hello\"));\nlet non_null = Box::into_non_null(x);\nlet x = unsafe { Box::from_non_null(non_null) };
\n

Manual cleanup by explicitly running the destructor and deallocating\nthe memory:

\n\n
#![feature(box_vec_non_null)]\n\nuse std::alloc::{dealloc, Layout};\n\nlet x = Box::new(String::from(\"Hello\"));\nlet non_null = Box::into_non_null(x);\nunsafe {\n    non_null.drop_in_place();\n    dealloc(non_null.as_ptr().cast::<u8>(), Layout::new::<String>());\n}
\n

Note: This is equivalent to the following:

\n\n
#![feature(box_vec_non_null)]\n\nlet x = Box::new(String::from(\"Hello\"));\nlet non_null = Box::into_non_null(x);\nunsafe {\n    drop(Box::from_non_null(non_null));\n}
\n
Source

pub fn into_raw_with_allocator(b: Box<T, A>) -> (*mut T, A)

🔬This is a nightly-only experimental API. (allocator_api)

Consumes the Box, returning a wrapped raw pointer and the allocator.

\n

The pointer will be properly aligned and non-null.

\n

After calling this function, the caller is responsible for the\nmemory previously managed by the Box. In particular, the\ncaller should properly destroy T and release the memory, taking\ninto account the memory layout used by Box. The easiest way to\ndo this is to convert the raw pointer back into a Box with the\nBox::from_raw_in function, allowing the Box destructor to perform\nthe cleanup.

\n

Note: this is an associated function, which means that you have\nto call it as Box::into_raw_with_allocator(b) instead of b.into_raw_with_allocator(). This\nis so that there is no conflict with a method on the inner type.

\n
§Examples
\n

Converting the raw pointer back into a Box with Box::from_raw_in\nfor automatic cleanup:

\n\n
#![feature(allocator_api)]\n\nuse std::alloc::System;\n\nlet x = Box::new_in(String::from(\"Hello\"), System);\nlet (ptr, alloc) = Box::into_raw_with_allocator(x);\nlet x = unsafe { Box::from_raw_in(ptr, alloc) };
\n

Manual cleanup by explicitly running the destructor and deallocating\nthe memory:

\n\n
#![feature(allocator_api)]\n\nuse std::alloc::{Allocator, Layout, System};\nuse std::ptr::{self, NonNull};\n\nlet x = Box::new_in(String::from(\"Hello\"), System);\nlet (ptr, alloc) = Box::into_raw_with_allocator(x);\nunsafe {\n    ptr::drop_in_place(ptr);\n    let non_null = NonNull::new_unchecked(ptr);\n    alloc.deallocate(non_null.cast(), Layout::new::<String>());\n}
\n
Source

pub fn into_non_null_with_allocator(b: Box<T, A>) -> (NonNull<T>, A)

🔬This is a nightly-only experimental API. (allocator_api)

Consumes the Box, returning a wrapped NonNull pointer and the allocator.

\n

The pointer will be properly aligned.

\n

After calling this function, the caller is responsible for the\nmemory previously managed by the Box. In particular, the\ncaller should properly destroy T and release the memory, taking\ninto account the memory layout used by Box. The easiest way to\ndo this is to convert the NonNull pointer back into a Box with the\nBox::from_non_null_in function, allowing the Box destructor to\nperform the cleanup.

\n

Note: this is an associated function, which means that you have\nto call it as Box::into_non_null_with_allocator(b) instead of\nb.into_non_null_with_allocator(). This is so that there is no\nconflict with a method on the inner type.

\n
§Examples
\n

Converting the NonNull pointer back into a Box with\nBox::from_non_null_in for automatic cleanup:

\n\n
#![feature(allocator_api, box_vec_non_null)]\n\nuse std::alloc::System;\n\nlet x = Box::new_in(String::from(\"Hello\"), System);\nlet (non_null, alloc) = Box::into_non_null_with_allocator(x);\nlet x = unsafe { Box::from_non_null_in(non_null, alloc) };
\n

Manual cleanup by explicitly running the destructor and deallocating\nthe memory:

\n\n
#![feature(allocator_api, box_vec_non_null)]\n\nuse std::alloc::{Allocator, Layout, System};\n\nlet x = Box::new_in(String::from(\"Hello\"), System);\nlet (non_null, alloc) = Box::into_non_null_with_allocator(x);\nunsafe {\n    non_null.drop_in_place();\n    alloc.deallocate(non_null.cast::<u8>(), Layout::new::<String>());\n}
\n
Source

pub fn as_mut_ptr(b: &mut Box<T, A>) -> *mut T

🔬This is a nightly-only experimental API. (box_as_ptr)

Returns a raw mutable pointer to the Box’s contents.

\n

The caller must ensure that the Box outlives the pointer this\nfunction returns, or else it will end up dangling.

\n

This method guarantees that for the purpose of the aliasing model, this method\ndoes not materialize a reference to the underlying memory, and thus the returned pointer\nwill remain valid when mixed with other calls to as_ptr and as_mut_ptr.\nNote that calling other methods that materialize references to the memory\nmay still invalidate this pointer.\nSee the example below for how this guarantee can be used.

\n
§Examples
\n

Due to the aliasing guarantee, the following code is legal:

\n\n
#![feature(box_as_ptr)]\n\nunsafe {\n    let mut b = Box::new(0);\n    let ptr1 = Box::as_mut_ptr(&mut b);\n    ptr1.write(1);\n    let ptr2 = Box::as_mut_ptr(&mut b);\n    ptr2.write(2);\n    // Notably, the write to `ptr2` did *not* invalidate `ptr1`:\n    ptr1.write(3);\n}
\n
Source

pub fn as_ptr(b: &Box<T, A>) -> *const T

🔬This is a nightly-only experimental API. (box_as_ptr)

Returns a raw pointer to the Box’s contents.

\n

The caller must ensure that the Box outlives the pointer this\nfunction returns, or else it will end up dangling.

\n

The caller must also ensure that the memory the pointer (non-transitively) points to\nis never written to (except inside an UnsafeCell) using this pointer or any pointer\nderived from it. If you need to mutate the contents of the Box, use as_mut_ptr.

\n

This method guarantees that for the purpose of the aliasing model, this method\ndoes not materialize a reference to the underlying memory, and thus the returned pointer\nwill remain valid when mixed with other calls to as_ptr and as_mut_ptr.\nNote that calling other methods that materialize mutable references to the memory,\nas well as writing to this memory, may still invalidate this pointer.\nSee the example below for how this guarantee can be used.

\n
§Examples
\n

Due to the aliasing guarantee, the following code is legal:

\n\n
#![feature(box_as_ptr)]\n\nunsafe {\n    let mut v = Box::new(0);\n    let ptr1 = Box::as_ptr(&v);\n    let ptr2 = Box::as_mut_ptr(&mut v);\n    let _val = ptr2.read();\n    // No write to this memory has happened yet, so `ptr1` is still valid.\n    let _val = ptr1.read();\n    // However, once we do a write...\n    ptr2.write(1);\n    // ... `ptr1` is no longer valid.\n    // This would be UB: let _val = ptr1.read();\n}
\n
Source

pub const fn allocator(b: &Box<T, A>) -> &A

🔬This is a nightly-only experimental API. (allocator_api)

Returns a reference to the underlying allocator.

\n

Note: this is an associated function, which means that you have\nto call it as Box::allocator(&b) instead of b.allocator(). This\nis so that there is no conflict with a method on the inner type.

\n
1.26.0 · Source

pub fn leak<'a>(b: Box<T, A>) -> &'a mut T
where\n A: 'a,

Consumes and leaks the Box, returning a mutable reference,\n&'a mut T.

\n

Note that the type T must outlive the chosen lifetime 'a. If the type\nhas only static references, or none at all, then this may be chosen to be\n'static.

\n

This function is mainly useful for data that lives for the remainder of\nthe program’s life. Dropping the returned reference will cause a memory\nleak. If this is not acceptable, the reference should first be wrapped\nwith the Box::from_raw function producing a Box. This Box can\nthen be dropped which will properly destroy T and release the\nallocated memory.

\n

Note: this is an associated function, which means that you have\nto call it as Box::leak(b) instead of b.leak(). This\nis so that there is no conflict with a method on the inner type.

\n
§Examples
\n

Simple usage:

\n\n
let x = Box::new(41);\nlet static_ref: &'static mut usize = Box::leak(x);\n*static_ref += 1;\nassert_eq!(*static_ref, 42);
\n

Unsized data:

\n\n
let x = vec![1, 2, 3].into_boxed_slice();\nlet static_ref = Box::leak(x);\nstatic_ref[0] = 4;\nassert_eq!(*static_ref, [4, 2, 3]);
\n
1.63.0 (const: unstable) · Source

pub fn into_pin(boxed: Box<T, A>) -> Pin<Box<T, A>>
where\n A: 'static,

Converts a Box<T> into a Pin<Box<T>>. If T does not implement Unpin, then\n*boxed will be pinned in memory and unable to be moved.

\n

This conversion does not allocate on the heap and happens in place.

\n

This is also available via From.

\n

Constructing and pinning a Box with Box::into_pin(Box::new(x))\ncan also be written more concisely using Box::pin(x).\nThis into_pin method is useful if you already have a Box<T>, or you are\nconstructing a (pinned) Box in a different way than with Box::new.

\n
§Notes
\n

It’s not recommended that crates add an impl like From<Box<T>> for Pin<T>,\nas it’ll introduce an ambiguity when calling Pin::from.\nA demonstration of such a poor impl is shown below.

\n\n
struct Foo; // A type defined in this crate.\nimpl From<Box<()>> for Pin<Foo> {\n    fn from(_: Box<()>) -> Pin<Foo> {\n        Pin::new(Foo)\n    }\n}\n\nlet foo = Box::new(());\nlet bar = Pin::from(foo);
\n
",0,"iced::widget::text::StyleFn"],["
Source§

impl<T, A> Box<T, A>
where\n A: Allocator,\n T: ?Sized,

Source

pub const unsafe fn from_raw_in(raw: *mut T, alloc: A) -> Box<T, A>

🔬This is a nightly-only experimental API. (allocator_api)
Available on crate feature advanced only.

Constructs a box from a raw pointer in the given allocator.

\n

After calling this function, the raw pointer is owned by the\nresulting Box. Specifically, the Box destructor will call\nthe destructor of T and free the allocated memory. For this\nto be safe, the memory must have been allocated in accordance\nwith the memory layout used by Box .

\n
§Safety
\n

This function is unsafe because improper use may lead to\nmemory problems. For example, a double-free may occur if the\nfunction is called twice on the same raw pointer.

\n

The raw pointer must point to a block of memory allocated by alloc

\n
§Examples
\n

Recreate a Box which was previously converted to a raw pointer\nusing Box::into_raw_with_allocator:

\n\n
#![feature(allocator_api)]\n\nuse std::alloc::System;\n\nlet x = Box::new_in(5, System);\nlet (ptr, alloc) = Box::into_raw_with_allocator(x);\nlet x = unsafe { Box::from_raw_in(ptr, alloc) };
\n

Manually create a Box from scratch by using the system allocator:

\n\n
#![feature(allocator_api, slice_ptr_get)]\n\nuse std::alloc::{Allocator, Layout, System};\n\nunsafe {\n    let ptr = System.allocate(Layout::new::<i32>())?.as_mut_ptr() as *mut i32;\n    // In general .write is required to avoid attempting to destruct\n    // the (uninitialized) previous contents of `ptr`, though for this\n    // simple example `*ptr = 5` would have worked as well.\n    ptr.write(5);\n    let x = Box::from_raw_in(ptr, System);\n}
\n
Source

pub const unsafe fn from_non_null_in(raw: NonNull<T>, alloc: A) -> Box<T, A>

🔬This is a nightly-only experimental API. (allocator_api)
Available on crate feature advanced only.

Constructs a box from a NonNull pointer in the given allocator.

\n

After calling this function, the NonNull pointer is owned by\nthe resulting Box. Specifically, the Box destructor will call\nthe destructor of T and free the allocated memory. For this\nto be safe, the memory must have been allocated in accordance\nwith the memory layout used by Box .

\n
§Safety
\n

This function is unsafe because improper use may lead to\nmemory problems. For example, a double-free may occur if the\nfunction is called twice on the same raw pointer.

\n
§Examples
\n

Recreate a Box which was previously converted to a NonNull pointer\nusing Box::into_non_null_with_allocator:

\n\n
#![feature(allocator_api, box_vec_non_null)]\n\nuse std::alloc::System;\n\nlet x = Box::new_in(5, System);\nlet (non_null, alloc) = Box::into_non_null_with_allocator(x);\nlet x = unsafe { Box::from_non_null_in(non_null, alloc) };
\n

Manually create a Box from scratch by using the system allocator:

\n\n
#![feature(allocator_api, box_vec_non_null, slice_ptr_get)]\n\nuse std::alloc::{Allocator, Layout, System};\n\nunsafe {\n    let non_null = System.allocate(Layout::new::<i32>())?.cast::<i32>();\n    // In general .write is required to avoid attempting to destruct\n    // the (uninitialized) previous contents of `non_null`.\n    non_null.write(5);\n    let x = Box::from_non_null_in(non_null, System);\n}
\n
1.4.0 · Source

pub fn into_raw(b: Box<T, A>) -> *mut T

Available on crate feature advanced only.

Consumes the Box, returning a wrapped raw pointer.

\n

The pointer will be properly aligned and non-null.

\n

After calling this function, the caller is responsible for the\nmemory previously managed by the Box. In particular, the\ncaller should properly destroy T and release the memory, taking\ninto account the memory layout used by Box. The easiest way to\ndo this is to convert the raw pointer back into a Box with the\nBox::from_raw function, allowing the Box destructor to perform\nthe cleanup.

\n

Note: this is an associated function, which means that you have\nto call it as Box::into_raw(b) instead of b.into_raw(). This\nis so that there is no conflict with a method on the inner type.

\n
§Examples
\n

Converting the raw pointer back into a Box with Box::from_raw\nfor automatic cleanup:

\n\n
let x = Box::new(String::from(\"Hello\"));\nlet ptr = Box::into_raw(x);\nlet x = unsafe { Box::from_raw(ptr) };
\n

Manual cleanup by explicitly running the destructor and deallocating\nthe memory:

\n\n
use std::alloc::{dealloc, Layout};\nuse std::ptr;\n\nlet x = Box::new(String::from(\"Hello\"));\nlet ptr = Box::into_raw(x);\nunsafe {\n    ptr::drop_in_place(ptr);\n    dealloc(ptr as *mut u8, Layout::new::<String>());\n}
\n

Note: This is equivalent to the following:

\n\n
let x = Box::new(String::from(\"Hello\"));\nlet ptr = Box::into_raw(x);\nunsafe {\n    drop(Box::from_raw(ptr));\n}
\n
Source

pub fn into_non_null(b: Box<T, A>) -> NonNull<T>

🔬This is a nightly-only experimental API. (box_vec_non_null)
Available on crate feature advanced only.

Consumes the Box, returning a wrapped NonNull pointer.

\n

The pointer will be properly aligned.

\n

After calling this function, the caller is responsible for the\nmemory previously managed by the Box. In particular, the\ncaller should properly destroy T and release the memory, taking\ninto account the memory layout used by Box. The easiest way to\ndo this is to convert the NonNull pointer back into a Box with the\nBox::from_non_null function, allowing the Box destructor to\nperform the cleanup.

\n

Note: this is an associated function, which means that you have\nto call it as Box::into_non_null(b) instead of b.into_non_null().\nThis is so that there is no conflict with a method on the inner type.

\n
§Examples
\n

Converting the NonNull pointer back into a Box with Box::from_non_null\nfor automatic cleanup:

\n\n
#![feature(box_vec_non_null)]\n\nlet x = Box::new(String::from(\"Hello\"));\nlet non_null = Box::into_non_null(x);\nlet x = unsafe { Box::from_non_null(non_null) };
\n

Manual cleanup by explicitly running the destructor and deallocating\nthe memory:

\n\n
#![feature(box_vec_non_null)]\n\nuse std::alloc::{dealloc, Layout};\n\nlet x = Box::new(String::from(\"Hello\"));\nlet non_null = Box::into_non_null(x);\nunsafe {\n    non_null.drop_in_place();\n    dealloc(non_null.as_ptr().cast::<u8>(), Layout::new::<String>());\n}
\n

Note: This is equivalent to the following:

\n\n
#![feature(box_vec_non_null)]\n\nlet x = Box::new(String::from(\"Hello\"));\nlet non_null = Box::into_non_null(x);\nunsafe {\n    drop(Box::from_non_null(non_null));\n}
\n
Source

pub fn into_raw_with_allocator(b: Box<T, A>) -> (*mut T, A)

🔬This is a nightly-only experimental API. (allocator_api)
Available on crate feature advanced only.

Consumes the Box, returning a wrapped raw pointer and the allocator.

\n

The pointer will be properly aligned and non-null.

\n

After calling this function, the caller is responsible for the\nmemory previously managed by the Box. In particular, the\ncaller should properly destroy T and release the memory, taking\ninto account the memory layout used by Box. The easiest way to\ndo this is to convert the raw pointer back into a Box with the\nBox::from_raw_in function, allowing the Box destructor to perform\nthe cleanup.

\n

Note: this is an associated function, which means that you have\nto call it as Box::into_raw_with_allocator(b) instead of b.into_raw_with_allocator(). This\nis so that there is no conflict with a method on the inner type.

\n
§Examples
\n

Converting the raw pointer back into a Box with Box::from_raw_in\nfor automatic cleanup:

\n\n
#![feature(allocator_api)]\n\nuse std::alloc::System;\n\nlet x = Box::new_in(String::from(\"Hello\"), System);\nlet (ptr, alloc) = Box::into_raw_with_allocator(x);\nlet x = unsafe { Box::from_raw_in(ptr, alloc) };
\n

Manual cleanup by explicitly running the destructor and deallocating\nthe memory:

\n\n
#![feature(allocator_api)]\n\nuse std::alloc::{Allocator, Layout, System};\nuse std::ptr::{self, NonNull};\n\nlet x = Box::new_in(String::from(\"Hello\"), System);\nlet (ptr, alloc) = Box::into_raw_with_allocator(x);\nunsafe {\n    ptr::drop_in_place(ptr);\n    let non_null = NonNull::new_unchecked(ptr);\n    alloc.deallocate(non_null.cast(), Layout::new::<String>());\n}
\n
Source

pub fn into_non_null_with_allocator(b: Box<T, A>) -> (NonNull<T>, A)

🔬This is a nightly-only experimental API. (allocator_api)
Available on crate feature advanced only.

Consumes the Box, returning a wrapped NonNull pointer and the allocator.

\n

The pointer will be properly aligned.

\n

After calling this function, the caller is responsible for the\nmemory previously managed by the Box. In particular, the\ncaller should properly destroy T and release the memory, taking\ninto account the memory layout used by Box. The easiest way to\ndo this is to convert the NonNull pointer back into a Box with the\nBox::from_non_null_in function, allowing the Box destructor to\nperform the cleanup.

\n

Note: this is an associated function, which means that you have\nto call it as Box::into_non_null_with_allocator(b) instead of\nb.into_non_null_with_allocator(). This is so that there is no\nconflict with a method on the inner type.

\n
§Examples
\n

Converting the NonNull pointer back into a Box with\nBox::from_non_null_in for automatic cleanup:

\n\n
#![feature(allocator_api, box_vec_non_null)]\n\nuse std::alloc::System;\n\nlet x = Box::new_in(String::from(\"Hello\"), System);\nlet (non_null, alloc) = Box::into_non_null_with_allocator(x);\nlet x = unsafe { Box::from_non_null_in(non_null, alloc) };
\n

Manual cleanup by explicitly running the destructor and deallocating\nthe memory:

\n\n
#![feature(allocator_api, box_vec_non_null)]\n\nuse std::alloc::{Allocator, Layout, System};\n\nlet x = Box::new_in(String::from(\"Hello\"), System);\nlet (non_null, alloc) = Box::into_non_null_with_allocator(x);\nunsafe {\n    non_null.drop_in_place();\n    alloc.deallocate(non_null.cast::<u8>(), Layout::new::<String>());\n}
\n
Source

pub fn as_mut_ptr(b: &mut Box<T, A>) -> *mut T

🔬This is a nightly-only experimental API. (box_as_ptr)
Available on crate feature advanced only.

Returns a raw mutable pointer to the Box’s contents.

\n

The caller must ensure that the Box outlives the pointer this\nfunction returns, or else it will end up dangling.

\n

This method guarantees that for the purpose of the aliasing model, this method\ndoes not materialize a reference to the underlying memory, and thus the returned pointer\nwill remain valid when mixed with other calls to as_ptr and as_mut_ptr.\nNote that calling other methods that materialize references to the memory\nmay still invalidate this pointer.\nSee the example below for how this guarantee can be used.

\n
§Examples
\n

Due to the aliasing guarantee, the following code is legal:

\n\n
#![feature(box_as_ptr)]\n\nunsafe {\n    let mut b = Box::new(0);\n    let ptr1 = Box::as_mut_ptr(&mut b);\n    ptr1.write(1);\n    let ptr2 = Box::as_mut_ptr(&mut b);\n    ptr2.write(2);\n    // Notably, the write to `ptr2` did *not* invalidate `ptr1`:\n    ptr1.write(3);\n}
\n
Source

pub fn as_ptr(b: &Box<T, A>) -> *const T

🔬This is a nightly-only experimental API. (box_as_ptr)
Available on crate feature advanced only.

Returns a raw pointer to the Box’s contents.

\n

The caller must ensure that the Box outlives the pointer this\nfunction returns, or else it will end up dangling.

\n

The caller must also ensure that the memory the pointer (non-transitively) points to\nis never written to (except inside an UnsafeCell) using this pointer or any pointer\nderived from it. If you need to mutate the contents of the Box, use as_mut_ptr.

\n

This method guarantees that for the purpose of the aliasing model, this method\ndoes not materialize a reference to the underlying memory, and thus the returned pointer\nwill remain valid when mixed with other calls to as_ptr and as_mut_ptr.\nNote that calling other methods that materialize mutable references to the memory,\nas well as writing to this memory, may still invalidate this pointer.\nSee the example below for how this guarantee can be used.

\n
§Examples
\n

Due to the aliasing guarantee, the following code is legal:

\n\n
#![feature(box_as_ptr)]\n\nunsafe {\n    let mut v = Box::new(0);\n    let ptr1 = Box::as_ptr(&v);\n    let ptr2 = Box::as_mut_ptr(&mut v);\n    let _val = ptr2.read();\n    // No write to this memory has happened yet, so `ptr1` is still valid.\n    let _val = ptr1.read();\n    // However, once we do a write...\n    ptr2.write(1);\n    // ... `ptr1` is no longer valid.\n    // This would be UB: let _val = ptr1.read();\n}
\n
Source

pub const fn allocator(b: &Box<T, A>) -> &A

🔬This is a nightly-only experimental API. (allocator_api)
Available on crate feature advanced only.

Returns a reference to the underlying allocator.

\n

Note: this is an associated function, which means that you have\nto call it as Box::allocator(&b) instead of b.allocator(). This\nis so that there is no conflict with a method on the inner type.

\n
1.26.0 · Source

pub fn leak<'a>(b: Box<T, A>) -> &'a mut T
where\n A: 'a,

Available on crate feature advanced only.

Consumes and leaks the Box, returning a mutable reference,\n&'a mut T.

\n

Note that the type T must outlive the chosen lifetime 'a. If the type\nhas only static references, or none at all, then this may be chosen to be\n'static.

\n

This function is mainly useful for data that lives for the remainder of\nthe program’s life. Dropping the returned reference will cause a memory\nleak. If this is not acceptable, the reference should first be wrapped\nwith the Box::from_raw function producing a Box. This Box can\nthen be dropped which will properly destroy T and release the\nallocated memory.

\n

Note: this is an associated function, which means that you have\nto call it as Box::leak(b) instead of b.leak(). This\nis so that there is no conflict with a method on the inner type.

\n
§Examples
\n

Simple usage:

\n\n
let x = Box::new(41);\nlet static_ref: &'static mut usize = Box::leak(x);\n*static_ref += 1;\nassert_eq!(*static_ref, 42);
\n

Unsized data:

\n\n
let x = vec![1, 2, 3].into_boxed_slice();\nlet static_ref = Box::leak(x);\nstatic_ref[0] = 4;\nassert_eq!(*static_ref, [4, 2, 3]);
\n
1.63.0 (const: unstable) · Source

pub fn into_pin(boxed: Box<T, A>) -> Pin<Box<T, A>>
where\n A: 'static,

Available on crate feature advanced only.

Converts a Box<T> into a Pin<Box<T>>. If T does not implement Unpin, then\n*boxed will be pinned in memory and unable to be moved.

\n

This conversion does not allocate on the heap and happens in place.

\n

This is also available via From.

\n

Constructing and pinning a Box with Box::into_pin(Box::new(x))\ncan also be written more concisely using Box::pin(x).\nThis into_pin method is useful if you already have a Box<T>, or you are\nconstructing a (pinned) Box in a different way than with Box::new.

\n
§Notes
\n

It’s not recommended that crates add an impl like From<Box<T>> for Pin<T>,\nas it’ll introduce an ambiguity when calling Pin::from.\nA demonstration of such a poor impl is shown below.

\n\n
struct Foo; // A type defined in this crate.\nimpl From<Box<()>> for Pin<Foo> {\n    fn from(_: Box<()>) -> Pin<Foo> {\n        Pin::new(Foo)\n    }\n}\n\nlet foo = Box::new(());\nlet bar = Pin::from(foo);
\n
",0,"iced::overlay::menu::StyleFn","iced::widget::button::StyleFn","iced::widget::checkbox::StyleFn","iced::widget::container::StyleFn","iced::widget::pane_grid::StyleFn","iced::widget::pick_list::StyleFn","iced::widget::progress_bar::StyleFn","iced::widget::radio::StyleFn","iced::widget::rule::StyleFn","iced::widget::scrollable::StyleFn","iced::widget::slider::StyleFn","iced::widget::text_editor::StyleFn","iced::widget::text_input::StyleFn","iced::widget::toggler::StyleFn","iced::widget::svg::StyleFn","iced::widget::qr_code::StyleFn"],["
Source§

impl<T, A> Box<T, A>
where\n A: Allocator,

Source

pub fn new_in(x: T, alloc: A) -> Box<T, A>
where\n A: Allocator,

🔬This is a nightly-only experimental API. (allocator_api)
Available on crate feature advanced and non-no_global_oom_handling only.

Allocates memory in the given allocator then places x into it.

\n

This doesn’t actually allocate if T is zero-sized.

\n
§Examples
\n
#![feature(allocator_api)]\n\nuse std::alloc::System;\n\nlet five = Box::new_in(5, System);
\n
Source

pub fn try_new_in(x: T, alloc: A) -> Result<Box<T, A>, AllocError>
where\n A: Allocator,

🔬This is a nightly-only experimental API. (allocator_api)
Available on crate feature advanced only.

Allocates memory in the given allocator then places x into it,\nreturning an error if the allocation fails

\n

This doesn’t actually allocate if T is zero-sized.

\n
§Examples
\n
#![feature(allocator_api)]\n\nuse std::alloc::System;\n\nlet five = Box::try_new_in(5, System)?;
\n
Source

pub fn new_uninit_in(alloc: A) -> Box<MaybeUninit<T>, A>
where\n A: Allocator,

🔬This is a nightly-only experimental API. (allocator_api)
Available on crate feature advanced and non-no_global_oom_handling only.

Constructs a new box with uninitialized contents in the provided allocator.

\n
§Examples
\n
#![feature(allocator_api)]\n\nuse std::alloc::System;\n\nlet mut five = Box::<u32, _>::new_uninit_in(System);\n\nlet five = unsafe {\n    // Deferred initialization:\n    five.as_mut_ptr().write(5);\n\n    five.assume_init()\n};\n\nassert_eq!(*five, 5)
\n
Source

pub fn try_new_uninit_in(alloc: A) -> Result<Box<MaybeUninit<T>, A>, AllocError>
where\n A: Allocator,

🔬This is a nightly-only experimental API. (allocator_api)
Available on crate feature advanced only.

Constructs a new box with uninitialized contents in the provided allocator,\nreturning an error if the allocation fails

\n
§Examples
\n
#![feature(allocator_api)]\n\nuse std::alloc::System;\n\nlet mut five = Box::<u32, _>::try_new_uninit_in(System)?;\n\nlet five = unsafe {\n    // Deferred initialization:\n    five.as_mut_ptr().write(5);\n\n    five.assume_init()\n};\n\nassert_eq!(*five, 5);
\n
Source

pub fn new_zeroed_in(alloc: A) -> Box<MaybeUninit<T>, A>
where\n A: Allocator,

🔬This is a nightly-only experimental API. (allocator_api)
Available on crate feature advanced and non-no_global_oom_handling only.

Constructs a new Box with uninitialized contents, with the memory\nbeing filled with 0 bytes in the provided allocator.

\n

See MaybeUninit::zeroed for examples of correct and incorrect usage\nof this method.

\n
§Examples
\n
#![feature(allocator_api)]\n\nuse std::alloc::System;\n\nlet zero = Box::<u32, _>::new_zeroed_in(System);\nlet zero = unsafe { zero.assume_init() };\n\nassert_eq!(*zero, 0)
\n
Source

pub fn try_new_zeroed_in(alloc: A) -> Result<Box<MaybeUninit<T>, A>, AllocError>
where\n A: Allocator,

🔬This is a nightly-only experimental API. (allocator_api)
Available on crate feature advanced only.

Constructs a new Box with uninitialized contents, with the memory\nbeing filled with 0 bytes in the provided allocator,\nreturning an error if the allocation fails,

\n

See MaybeUninit::zeroed for examples of correct and incorrect usage\nof this method.

\n
§Examples
\n
#![feature(allocator_api)]\n\nuse std::alloc::System;\n\nlet zero = Box::<u32, _>::try_new_zeroed_in(System)?;\nlet zero = unsafe { zero.assume_init() };\n\nassert_eq!(*zero, 0);
\n
Source

pub fn pin_in(x: T, alloc: A) -> Pin<Box<T, A>>
where\n A: 'static + Allocator,

🔬This is a nightly-only experimental API. (allocator_api)
Available on crate feature advanced and non-no_global_oom_handling only.

Constructs a new Pin<Box<T, A>>. If T does not implement Unpin, then\nx will be pinned in memory and unable to be moved.

\n

Constructing and pinning of the Box can also be done in two steps: Box::pin_in(x, alloc)\ndoes the same as Box::into_pin(Box::new_in(x, alloc)). Consider using\ninto_pin if you already have a Box<T, A>, or if you want to\nconstruct a (pinned) Box in a different way than with Box::new_in.

\n
Source

pub fn into_boxed_slice(boxed: Box<T, A>) -> Box<[T], A>

🔬This is a nightly-only experimental API. (box_into_boxed_slice)
Available on crate feature advanced only.

Converts a Box<T> into a Box<[T]>

\n

This conversion does not allocate on the heap and happens in place.

\n
Source

pub fn into_inner(boxed: Box<T, A>) -> T

🔬This is a nightly-only experimental API. (box_into_inner)
Available on crate feature advanced only.

Consumes the Box, returning the wrapped value.

\n
§Examples
\n
#![feature(box_into_inner)]\n\nlet c = Box::new(5);\n\nassert_eq!(Box::into_inner(c), 5);
\n
",0,"iced::overlay::menu::StyleFn","iced::widget::button::StyleFn","iced::widget::checkbox::StyleFn","iced::widget::container::StyleFn","iced::widget::pane_grid::StyleFn","iced::widget::pick_list::StyleFn","iced::widget::progress_bar::StyleFn","iced::widget::radio::StyleFn","iced::widget::rule::StyleFn","iced::widget::scrollable::StyleFn","iced::widget::slider::StyleFn","iced::widget::text_editor::StyleFn","iced::widget::text_input::StyleFn","iced::widget::toggler::StyleFn","iced::widget::svg::StyleFn","iced::widget::qr_code::StyleFn"],["
Source§

impl<T, A> Box<T, A>
where\n A: Allocator,

Source

pub fn new_in(x: T, alloc: A) -> Box<T, A>
where\n A: Allocator,

🔬This is a nightly-only experimental API. (allocator_api)
Available on non-no_global_oom_handling only.

Allocates memory in the given allocator then places x into it.

\n

This doesn’t actually allocate if T is zero-sized.

\n
§Examples
\n
#![feature(allocator_api)]\n\nuse std::alloc::System;\n\nlet five = Box::new_in(5, System);
\n
Source

pub fn try_new_in(x: T, alloc: A) -> Result<Box<T, A>, AllocError>
where\n A: Allocator,

🔬This is a nightly-only experimental API. (allocator_api)

Allocates memory in the given allocator then places x into it,\nreturning an error if the allocation fails

\n

This doesn’t actually allocate if T is zero-sized.

\n
§Examples
\n
#![feature(allocator_api)]\n\nuse std::alloc::System;\n\nlet five = Box::try_new_in(5, System)?;
\n
Source

pub fn new_uninit_in(alloc: A) -> Box<MaybeUninit<T>, A>
where\n A: Allocator,

🔬This is a nightly-only experimental API. (allocator_api)
Available on non-no_global_oom_handling only.

Constructs a new box with uninitialized contents in the provided allocator.

\n
§Examples
\n
#![feature(allocator_api)]\n\nuse std::alloc::System;\n\nlet mut five = Box::<u32, _>::new_uninit_in(System);\n\nlet five = unsafe {\n    // Deferred initialization:\n    five.as_mut_ptr().write(5);\n\n    five.assume_init()\n};\n\nassert_eq!(*five, 5)
\n
Source

pub fn try_new_uninit_in(alloc: A) -> Result<Box<MaybeUninit<T>, A>, AllocError>
where\n A: Allocator,

🔬This is a nightly-only experimental API. (allocator_api)

Constructs a new box with uninitialized contents in the provided allocator,\nreturning an error if the allocation fails

\n
§Examples
\n
#![feature(allocator_api)]\n\nuse std::alloc::System;\n\nlet mut five = Box::<u32, _>::try_new_uninit_in(System)?;\n\nlet five = unsafe {\n    // Deferred initialization:\n    five.as_mut_ptr().write(5);\n\n    five.assume_init()\n};\n\nassert_eq!(*five, 5);
\n
Source

pub fn new_zeroed_in(alloc: A) -> Box<MaybeUninit<T>, A>
where\n A: Allocator,

🔬This is a nightly-only experimental API. (allocator_api)
Available on non-no_global_oom_handling only.

Constructs a new Box with uninitialized contents, with the memory\nbeing filled with 0 bytes in the provided allocator.

\n

See MaybeUninit::zeroed for examples of correct and incorrect usage\nof this method.

\n
§Examples
\n
#![feature(allocator_api)]\n\nuse std::alloc::System;\n\nlet zero = Box::<u32, _>::new_zeroed_in(System);\nlet zero = unsafe { zero.assume_init() };\n\nassert_eq!(*zero, 0)
\n
Source

pub fn try_new_zeroed_in(alloc: A) -> Result<Box<MaybeUninit<T>, A>, AllocError>
where\n A: Allocator,

🔬This is a nightly-only experimental API. (allocator_api)

Constructs a new Box with uninitialized contents, with the memory\nbeing filled with 0 bytes in the provided allocator,\nreturning an error if the allocation fails,

\n

See MaybeUninit::zeroed for examples of correct and incorrect usage\nof this method.

\n
§Examples
\n
#![feature(allocator_api)]\n\nuse std::alloc::System;\n\nlet zero = Box::<u32, _>::try_new_zeroed_in(System)?;\nlet zero = unsafe { zero.assume_init() };\n\nassert_eq!(*zero, 0);
\n
Source

pub fn pin_in(x: T, alloc: A) -> Pin<Box<T, A>>
where\n A: 'static + Allocator,

🔬This is a nightly-only experimental API. (allocator_api)
Available on non-no_global_oom_handling only.

Constructs a new Pin<Box<T, A>>. If T does not implement Unpin, then\nx will be pinned in memory and unable to be moved.

\n

Constructing and pinning of the Box can also be done in two steps: Box::pin_in(x, alloc)\ndoes the same as Box::into_pin(Box::new_in(x, alloc)). Consider using\ninto_pin if you already have a Box<T, A>, or if you want to\nconstruct a (pinned) Box in a different way than with Box::new_in.

\n
Source

pub fn into_boxed_slice(boxed: Box<T, A>) -> Box<[T], A>

🔬This is a nightly-only experimental API. (box_into_boxed_slice)

Converts a Box<T> into a Box<[T]>

\n

This conversion does not allocate on the heap and happens in place.

\n
Source

pub fn into_inner(boxed: Box<T, A>) -> T

🔬This is a nightly-only experimental API. (box_into_inner)

Consumes the Box, returning the wrapped value.

\n
§Examples
\n
#![feature(box_into_inner)]\n\nlet c = Box::new(5);\n\nassert_eq!(Box::into_inner(c), 5);
\n
",0,"iced::widget::text::StyleFn"],["
§

impl<T> Buf for Box<T>
where\n T: Buf + ?Sized,

§

fn remaining(&self) -> usize

Returns the number of bytes between the current position and the end of\nthe buffer. Read more
§

fn chunk(&self) -> &[u8]

Returns a slice starting at the current position and of length between 0\nand Buf::remaining(). Note that this can return a shorter slice (this\nallows non-continuous internal representation). Read more
§

fn chunks_vectored<'b>(&'b self, dst: &mut [IoSlice<'b>]) -> usize

Available on crate feature std only.
Fills dst with potentially multiple slices starting at self’s\ncurrent position. Read more
§

fn advance(&mut self, cnt: usize)

Advance the internal cursor of the Buf Read more
§

fn has_remaining(&self) -> bool

Returns true if there are any more bytes to consume Read more
§

fn copy_to_slice(&mut self, dst: &mut [u8])

Copies bytes from self into dst. Read more
§

fn get_u8(&mut self) -> u8

Gets an unsigned 8 bit integer from self. Read more
§

fn get_i8(&mut self) -> i8

Gets a signed 8 bit integer from self. Read more
§

fn get_u16(&mut self) -> u16

Gets an unsigned 16 bit integer from self in big-endian byte order. Read more
§

fn get_u16_le(&mut self) -> u16

Gets an unsigned 16 bit integer from self in little-endian byte order. Read more
§

fn get_u16_ne(&mut self) -> u16

Gets an unsigned 16 bit integer from self in native-endian byte order. Read more
§

fn get_i16(&mut self) -> i16

Gets a signed 16 bit integer from self in big-endian byte order. Read more
§

fn get_i16_le(&mut self) -> i16

Gets a signed 16 bit integer from self in little-endian byte order. Read more
§

fn get_i16_ne(&mut self) -> i16

Gets a signed 16 bit integer from self in native-endian byte order. Read more
§

fn get_u32(&mut self) -> u32

Gets an unsigned 32 bit integer from self in the big-endian byte order. Read more
§

fn get_u32_le(&mut self) -> u32

Gets an unsigned 32 bit integer from self in the little-endian byte order. Read more
§

fn get_u32_ne(&mut self) -> u32

Gets an unsigned 32 bit integer from self in native-endian byte order. Read more
§

fn get_i32(&mut self) -> i32

Gets a signed 32 bit integer from self in big-endian byte order. Read more
§

fn get_i32_le(&mut self) -> i32

Gets a signed 32 bit integer from self in little-endian byte order. Read more
§

fn get_i32_ne(&mut self) -> i32

Gets a signed 32 bit integer from self in native-endian byte order. Read more
§

fn get_u64(&mut self) -> u64

Gets an unsigned 64 bit integer from self in big-endian byte order. Read more
§

fn get_u64_le(&mut self) -> u64

Gets an unsigned 64 bit integer from self in little-endian byte order. Read more
§

fn get_u64_ne(&mut self) -> u64

Gets an unsigned 64 bit integer from self in native-endian byte order. Read more
§

fn get_i64(&mut self) -> i64

Gets a signed 64 bit integer from self in big-endian byte order. Read more
§

fn get_i64_le(&mut self) -> i64

Gets a signed 64 bit integer from self in little-endian byte order. Read more
§

fn get_i64_ne(&mut self) -> i64

Gets a signed 64 bit integer from self in native-endian byte order. Read more
§

fn get_uint(&mut self, nbytes: usize) -> u64

Gets an unsigned n-byte integer from self in big-endian byte order. Read more
§

fn get_uint_le(&mut self, nbytes: usize) -> u64

Gets an unsigned n-byte integer from self in little-endian byte order. Read more
§

fn get_uint_ne(&mut self, nbytes: usize) -> u64

Gets an unsigned n-byte integer from self in native-endian byte order. Read more
§

fn get_int(&mut self, nbytes: usize) -> i64

Gets a signed n-byte integer from self in big-endian byte order. Read more
§

fn get_int_le(&mut self, nbytes: usize) -> i64

Gets a signed n-byte integer from self in little-endian byte order. Read more
§

fn get_int_ne(&mut self, nbytes: usize) -> i64

Gets a signed n-byte integer from self in native-endian byte order. Read more
§

fn copy_to_bytes(&mut self, len: usize) -> Bytes

Consumes len bytes inside self and returns new instance of Bytes\nwith this data. Read more
§

fn get_u128(&mut self) -> u128

Gets an unsigned 128 bit integer from self in big-endian byte order. Read more
§

fn get_u128_le(&mut self) -> u128

Gets an unsigned 128 bit integer from self in little-endian byte order. Read more
§

fn get_u128_ne(&mut self) -> u128

Gets an unsigned 128 bit integer from self in native-endian byte order. Read more
§

fn get_i128(&mut self) -> i128

Gets a signed 128 bit integer from self in big-endian byte order. Read more
§

fn get_i128_le(&mut self) -> i128

Gets a signed 128 bit integer from self in little-endian byte order. Read more
§

fn get_i128_ne(&mut self) -> i128

Gets a signed 128 bit integer from self in native-endian byte order. Read more
§

fn get_f32(&mut self) -> f32

Gets an IEEE754 single-precision (4 bytes) floating point number from\nself in big-endian byte order. Read more
§

fn get_f32_le(&mut self) -> f32

Gets an IEEE754 single-precision (4 bytes) floating point number from\nself in little-endian byte order. Read more
§

fn get_f32_ne(&mut self) -> f32

Gets an IEEE754 single-precision (4 bytes) floating point number from\nself in native-endian byte order. Read more
§

fn get_f64(&mut self) -> f64

Gets an IEEE754 double-precision (8 bytes) floating point number from\nself in big-endian byte order. Read more
§

fn get_f64_le(&mut self) -> f64

Gets an IEEE754 double-precision (8 bytes) floating point number from\nself in little-endian byte order. Read more
§

fn get_f64_ne(&mut self) -> f64

Gets an IEEE754 double-precision (8 bytes) floating point number from\nself in native-endian byte order. Read more
§

fn take(self, limit: usize) -> Take<Self>
where\n Self: Sized,

Creates an adaptor which will read at most limit bytes from self. Read more
§

fn chain<U>(self, next: U) -> Chain<Self, U>
where\n U: Buf,\n Self: Sized,

Creates an adaptor which will chain this buffer with another. Read more
§

fn reader(self) -> Reader<Self>
where\n Self: Sized,

Available on crate feature std only.
Creates an adaptor which implements the Read trait for self. Read more
","Buf","iced::widget::text::StyleFn","iced::overlay::menu::StyleFn","iced::widget::button::StyleFn","iced::widget::checkbox::StyleFn","iced::widget::container::StyleFn","iced::widget::pane_grid::StyleFn","iced::widget::pick_list::StyleFn","iced::widget::progress_bar::StyleFn","iced::widget::radio::StyleFn","iced::widget::rule::StyleFn","iced::widget::scrollable::StyleFn","iced::widget::slider::StyleFn","iced::widget::text_editor::StyleFn","iced::widget::text_input::StyleFn","iced::widget::toggler::StyleFn","iced::widget::svg::StyleFn","iced::widget::qr_code::StyleFn"],["
§

impl<T> BufMut for Box<T>
where\n T: BufMut + ?Sized,

§

fn remaining_mut(&self) -> usize

Returns the number of bytes that can be written from the current\nposition until the end of the buffer is reached. Read more
§

fn chunk_mut(&mut self) -> &mut UninitSlice

Returns a mutable slice starting at the current BufMut position and of\nlength between 0 and BufMut::remaining_mut(). Note that this can be shorter than the\nwhole remainder of the buffer (this allows non-continuous implementation). Read more
§

unsafe fn advance_mut(&mut self, cnt: usize)

Advance the internal cursor of the BufMut Read more
§

fn put_slice(&mut self, src: &[u8])

Transfer bytes into self from src and advance the cursor by the\nnumber of bytes written. Read more
§

fn put_u8(&mut self, n: u8)

Writes an unsigned 8 bit integer to self. Read more
§

fn put_i8(&mut self, n: i8)

Writes a signed 8 bit integer to self. Read more
§

fn put_u16(&mut self, n: u16)

Writes an unsigned 16 bit integer to self in big-endian byte order. Read more
§

fn put_u16_le(&mut self, n: u16)

Writes an unsigned 16 bit integer to self in little-endian byte order. Read more
§

fn put_u16_ne(&mut self, n: u16)

Writes an unsigned 16 bit integer to self in native-endian byte order. Read more
§

fn put_i16(&mut self, n: i16)

Writes a signed 16 bit integer to self in big-endian byte order. Read more
§

fn put_i16_le(&mut self, n: i16)

Writes a signed 16 bit integer to self in little-endian byte order. Read more
§

fn put_i16_ne(&mut self, n: i16)

Writes a signed 16 bit integer to self in native-endian byte order. Read more
§

fn put_u32(&mut self, n: u32)

Writes an unsigned 32 bit integer to self in big-endian byte order. Read more
§

fn put_u32_le(&mut self, n: u32)

Writes an unsigned 32 bit integer to self in little-endian byte order. Read more
§

fn put_u32_ne(&mut self, n: u32)

Writes an unsigned 32 bit integer to self in native-endian byte order. Read more
§

fn put_i32(&mut self, n: i32)

Writes a signed 32 bit integer to self in big-endian byte order. Read more
§

fn put_i32_le(&mut self, n: i32)

Writes a signed 32 bit integer to self in little-endian byte order. Read more
§

fn put_i32_ne(&mut self, n: i32)

Writes a signed 32 bit integer to self in native-endian byte order. Read more
§

fn put_u64(&mut self, n: u64)

Writes an unsigned 64 bit integer to self in the big-endian byte order. Read more
§

fn put_u64_le(&mut self, n: u64)

Writes an unsigned 64 bit integer to self in little-endian byte order. Read more
§

fn put_u64_ne(&mut self, n: u64)

Writes an unsigned 64 bit integer to self in native-endian byte order. Read more
§

fn put_i64(&mut self, n: i64)

Writes a signed 64 bit integer to self in the big-endian byte order. Read more
§

fn put_i64_le(&mut self, n: i64)

Writes a signed 64 bit integer to self in little-endian byte order. Read more
§

fn put_i64_ne(&mut self, n: i64)

Writes a signed 64 bit integer to self in native-endian byte order. Read more
§

fn has_remaining_mut(&self) -> bool

Returns true if there is space in self for more bytes. Read more
§

fn put<T>(&mut self, src: T)
where\n T: Buf,\n Self: Sized,

Transfer bytes into self from src and advance the cursor by the\nnumber of bytes written. Read more
§

fn put_bytes(&mut self, val: u8, cnt: usize)

Put cnt bytes val into self. Read more
§

fn put_u128(&mut self, n: u128)

Writes an unsigned 128 bit integer to self in the big-endian byte order. Read more
§

fn put_u128_le(&mut self, n: u128)

Writes an unsigned 128 bit integer to self in little-endian byte order. Read more
§

fn put_u128_ne(&mut self, n: u128)

Writes an unsigned 128 bit integer to self in native-endian byte order. Read more
§

fn put_i128(&mut self, n: i128)

Writes a signed 128 bit integer to self in the big-endian byte order. Read more
§

fn put_i128_le(&mut self, n: i128)

Writes a signed 128 bit integer to self in little-endian byte order. Read more
§

fn put_i128_ne(&mut self, n: i128)

Writes a signed 128 bit integer to self in native-endian byte order. Read more
§

fn put_uint(&mut self, n: u64, nbytes: usize)

Writes an unsigned n-byte integer to self in big-endian byte order. Read more
§

fn put_uint_le(&mut self, n: u64, nbytes: usize)

Writes an unsigned n-byte integer to self in the little-endian byte order. Read more
§

fn put_uint_ne(&mut self, n: u64, nbytes: usize)

Writes an unsigned n-byte integer to self in the native-endian byte order. Read more
§

fn put_int(&mut self, n: i64, nbytes: usize)

Writes low nbytes of a signed integer to self in big-endian byte order. Read more
§

fn put_int_le(&mut self, n: i64, nbytes: usize)

Writes low nbytes of a signed integer to self in little-endian byte order. Read more
§

fn put_int_ne(&mut self, n: i64, nbytes: usize)

Writes low nbytes of a signed integer to self in native-endian byte order. Read more
§

fn put_f32(&mut self, n: f32)

Writes an IEEE754 single-precision (4 bytes) floating point number to\nself in big-endian byte order. Read more
§

fn put_f32_le(&mut self, n: f32)

Writes an IEEE754 single-precision (4 bytes) floating point number to\nself in little-endian byte order. Read more
§

fn put_f32_ne(&mut self, n: f32)

Writes an IEEE754 single-precision (4 bytes) floating point number to\nself in native-endian byte order. Read more
§

fn put_f64(&mut self, n: f64)

Writes an IEEE754 double-precision (8 bytes) floating point number to\nself in big-endian byte order. Read more
§

fn put_f64_le(&mut self, n: f64)

Writes an IEEE754 double-precision (8 bytes) floating point number to\nself in little-endian byte order. Read more
§

fn put_f64_ne(&mut self, n: f64)

Writes an IEEE754 double-precision (8 bytes) floating point number to\nself in native-endian byte order. Read more
§

fn limit(self, limit: usize) -> Limit<Self>
where\n Self: Sized,

Creates an adaptor which can write at most limit bytes to self. Read more
§

fn writer(self) -> Writer<Self>
where\n Self: Sized,

Available on crate feature std only.
Creates an adaptor which implements the Write trait for self. Read more
§

fn chain_mut<U>(self, next: U) -> Chain<Self, U>
where\n U: BufMut,\n Self: Sized,

Creates an adapter which will chain this buffer with another. Read more
","BufMut","iced::widget::text::StyleFn","iced::overlay::menu::StyleFn","iced::widget::button::StyleFn","iced::widget::checkbox::StyleFn","iced::widget::container::StyleFn","iced::widget::pane_grid::StyleFn","iced::widget::pick_list::StyleFn","iced::widget::progress_bar::StyleFn","iced::widget::radio::StyleFn","iced::widget::rule::StyleFn","iced::widget::scrollable::StyleFn","iced::widget::slider::StyleFn","iced::widget::text_editor::StyleFn","iced::widget::text_input::StyleFn","iced::widget::toggler::StyleFn","iced::widget::svg::StyleFn","iced::widget::qr_code::StyleFn"],["
1.0.0 · Source§

impl<B> BufRead for Box<B>
where\n B: BufRead + ?Sized,

Source§

fn fill_buf(&mut self) -> Result<&[u8], Error>

Returns the contents of the internal buffer, filling it with more data\nfrom the inner reader if it is empty. Read more
Source§

fn consume(&mut self, amt: usize)

Tells this buffer that amt bytes have been consumed from the buffer,\nso they should no longer be returned in calls to read. Read more
Source§

fn read_until(&mut self, byte: u8, buf: &mut Vec<u8>) -> Result<usize, Error>

Reads all bytes into buf until the delimiter byte or EOF is reached. Read more
Source§

fn read_line(&mut self, buf: &mut String) -> Result<usize, Error>

Reads all bytes until a newline (the 0xA byte) is reached, and append\nthem to the provided String buffer. Read more
Source§

fn has_data_left(&mut self) -> Result<bool, Error>

🔬This is a nightly-only experimental API. (buf_read_has_data_left)
Checks if the underlying Read has any data left to be read. Read more
1.83.0 · Source§

fn skip_until(&mut self, byte: u8) -> Result<usize, Error>

Skips all bytes until the delimiter byte or EOF is reached. Read more
1.0.0 · Source§

fn split(self, byte: u8) -> Split<Self>
where\n Self: Sized,

Returns an iterator over the contents of this reader split on the byte\nbyte. Read more
1.0.0 · Source§

fn lines(self) -> Lines<Self>
where\n Self: Sized,

Returns an iterator over the lines of this reader. Read more
","BufRead","iced::widget::text::StyleFn","iced::overlay::menu::StyleFn","iced::widget::button::StyleFn","iced::widget::checkbox::StyleFn","iced::widget::container::StyleFn","iced::widget::pane_grid::StyleFn","iced::widget::pick_list::StyleFn","iced::widget::progress_bar::StyleFn","iced::widget::radio::StyleFn","iced::widget::rule::StyleFn","iced::widget::scrollable::StyleFn","iced::widget::slider::StyleFn","iced::widget::text_editor::StyleFn","iced::widget::text_input::StyleFn","iced::widget::toggler::StyleFn","iced::widget::svg::StyleFn","iced::widget::qr_code::StyleFn"],["
§

impl<T> BufferProvider for Box<T>
where\n T: BufferProvider + ?Sized,

§

fn load_buffer(\n &self,\n key: DataKey,\n req: DataRequest<'_>,\n) -> Result<DataResponse<BufferMarker>, DataError>

Loads a [DataPayload]<[BufferMarker]> according to the key and request.
","BufferProvider","iced::widget::text::StyleFn","iced::overlay::menu::StyleFn","iced::widget::button::StyleFn","iced::widget::checkbox::StyleFn","iced::widget::container::StyleFn","iced::widget::pane_grid::StyleFn","iced::widget::pick_list::StyleFn","iced::widget::progress_bar::StyleFn","iced::widget::radio::StyleFn","iced::widget::rule::StyleFn","iced::widget::scrollable::StyleFn","iced::widget::slider::StyleFn","iced::widget::text_editor::StyleFn","iced::widget::text_input::StyleFn","iced::widget::toggler::StyleFn","iced::widget::svg::StyleFn","iced::widget::qr_code::StyleFn"],["
1.0.0 · Source§

impl<T, A> Clone for Box<T, A>
where\n T: Clone,\n A: Allocator + Clone,

Available on non-no_global_oom_handling only.
Source§

fn clone(&self) -> Box<T, A>

Returns a new box with a clone() of this box’s contents.

\n
§Examples
\n
let x = Box::new(5);\nlet y = x.clone();\n\n// The value is the same\nassert_eq!(x, y);\n\n// But they are unique objects\nassert_ne!(&*x as *const i32, &*y as *const i32);
\n
Source§

fn clone_from(&mut self, source: &Box<T, A>)

Copies source’s contents into self without creating a new allocation.

\n
§Examples
\n
let x = Box::new(5);\nlet mut y = Box::new(10);\nlet yp: *const i32 = &*y;\n\ny.clone_from(&x);\n\n// The value is the same\nassert_eq!(x, y);\n\n// And no allocation occurred\nassert_eq!(yp, &*y);
\n
","Clone","iced::widget::text::StyleFn","iced::overlay::menu::StyleFn","iced::widget::button::StyleFn","iced::widget::checkbox::StyleFn","iced::widget::container::StyleFn","iced::widget::pane_grid::StyleFn","iced::widget::pick_list::StyleFn","iced::widget::progress_bar::StyleFn","iced::widget::radio::StyleFn","iced::widget::rule::StyleFn","iced::widget::scrollable::StyleFn","iced::widget::slider::StyleFn","iced::widget::text_editor::StyleFn","iced::widget::text_input::StyleFn","iced::widget::toggler::StyleFn","iced::widget::svg::StyleFn","iced::widget::qr_code::StyleFn"],["
§

impl<C> Connection for Box<C>
where\n C: Connection + ?Sized,

§

fn wait_for_event(&self) -> Result<Event, ConnectionError>

Wait for a new event from the X11 server.
§

fn wait_for_raw_event(\n &self,\n) -> Result<<Box<C> as RequestConnection>::Buf, ConnectionError>

Wait for a new raw/unparsed event from the X11 server.
§

fn wait_for_event_with_sequence(&self) -> Result<(Event, u64), ConnectionError>

Wait for a new event from the X11 server.
§

fn wait_for_raw_event_with_sequence(\n &self,\n) -> Result<(<Box<C> as RequestConnection>::Buf, u64), ConnectionError>

Wait for a new raw/unparsed event from the X11 server.
§

fn poll_for_event(&self) -> Result<Option<Event>, ConnectionError>

Poll for a new event from the X11 server.
§

fn poll_for_raw_event(\n &self,\n) -> Result<Option<<Box<C> as RequestConnection>::Buf>, ConnectionError>

Poll for a new raw/unparsed event from the X11 server.
§

fn poll_for_event_with_sequence(\n &self,\n) -> Result<Option<(Event, u64)>, ConnectionError>

Poll for a new event from the X11 server.
§

fn poll_for_raw_event_with_sequence(\n &self,\n) -> Result<Option<(<Box<C> as RequestConnection>::Buf, u64)>, ConnectionError>

Poll for a new unparsed/raw event from the X11 server.
§

fn flush(&self) -> Result<(), ConnectionError>

Send all pending requests to the server. Read more
§

fn setup(&self) -> &Setup

Get the setup information sent by the X11 server. Read more
§

fn generate_id(&self) -> Result<u32, ReplyOrIdError>

Generate a new X11 identifier. Read more
","Connection","iced::widget::text::StyleFn","iced::overlay::menu::StyleFn","iced::widget::button::StyleFn","iced::widget::checkbox::StyleFn","iced::widget::container::StyleFn","iced::widget::pane_grid::StyleFn","iced::widget::pick_list::StyleFn","iced::widget::progress_bar::StyleFn","iced::widget::radio::StyleFn","iced::widget::rule::StyleFn","iced::widget::scrollable::StyleFn","iced::widget::slider::StyleFn","iced::widget::text_editor::StyleFn","iced::widget::text_input::StyleFn","iced::widget::toggler::StyleFn","iced::widget::svg::StyleFn","iced::widget::qr_code::StyleFn"],["
Source§

impl<G, R, A> Coroutine<R> for Box<G, A>
where\n G: Coroutine<R> + Unpin + ?Sized,\n A: Allocator,

Source§

type Yield = <G as Coroutine<R>>::Yield

🔬This is a nightly-only experimental API. (coroutine_trait)
The type of value this coroutine yields. Read more
Source§

type Return = <G as Coroutine<R>>::Return

🔬This is a nightly-only experimental API. (coroutine_trait)
The type of value this coroutine returns. Read more
Source§

fn resume(\n self: Pin<&mut Box<G, A>>,\n arg: R,\n) -> CoroutineState<<Box<G, A> as Coroutine<R>>::Yield, <Box<G, A> as Coroutine<R>>::Return>

🔬This is a nightly-only experimental API. (coroutine_trait)
Resumes the execution of this coroutine. Read more
","Coroutine","iced::widget::text::StyleFn","iced::overlay::menu::StyleFn","iced::widget::button::StyleFn","iced::widget::checkbox::StyleFn","iced::widget::container::StyleFn","iced::widget::pane_grid::StyleFn","iced::widget::pick_list::StyleFn","iced::widget::progress_bar::StyleFn","iced::widget::radio::StyleFn","iced::widget::rule::StyleFn","iced::widget::scrollable::StyleFn","iced::widget::slider::StyleFn","iced::widget::text_editor::StyleFn","iced::widget::text_input::StyleFn","iced::widget::toggler::StyleFn","iced::widget::svg::StyleFn","iced::widget::qr_code::StyleFn"],["
§

impl<M, P> DataProvider<M> for Box<P>
where\n M: KeyedDataMarker,\n P: DataProvider<M> + ?Sized,

§

fn load(&self, req: DataRequest<'_>) -> Result<DataResponse<M>, DataError>

Query the provider for data, returning the result. Read more
","DataProvider","iced::widget::text::StyleFn","iced::overlay::menu::StyleFn","iced::widget::button::StyleFn","iced::widget::checkbox::StyleFn","iced::widget::container::StyleFn","iced::widget::pane_grid::StyleFn","iced::widget::pick_list::StyleFn","iced::widget::progress_bar::StyleFn","iced::widget::radio::StyleFn","iced::widget::rule::StyleFn","iced::widget::scrollable::StyleFn","iced::widget::slider::StyleFn","iced::widget::text_editor::StyleFn","iced::widget::text_input::StyleFn","iced::widget::toggler::StyleFn","iced::widget::svg::StyleFn","iced::widget::qr_code::StyleFn"],["
1.0.0 · Source§

impl<T, A> Debug for Box<T, A>
where\n T: Debug + ?Sized,\n A: Allocator,

Source§

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

Formats the value using the given formatter. Read more
","Debug","iced::widget::text::StyleFn","iced::overlay::menu::StyleFn","iced::widget::button::StyleFn","iced::widget::checkbox::StyleFn","iced::widget::container::StyleFn","iced::widget::pane_grid::StyleFn","iced::widget::pick_list::StyleFn","iced::widget::progress_bar::StyleFn","iced::widget::radio::StyleFn","iced::widget::rule::StyleFn","iced::widget::scrollable::StyleFn","iced::widget::slider::StyleFn","iced::widget::text_editor::StyleFn","iced::widget::text_input::StyleFn","iced::widget::toggler::StyleFn","iced::widget::svg::StyleFn","iced::widget::qr_code::StyleFn"],["
1.0.0 · Source§

impl<T> Default for Box<T>
where\n T: Default,

Available on non-no_global_oom_handling only.
Source§

fn default() -> Box<T>

Creates a Box<T>, with the Default value for T.

\n
","Default","iced::widget::text::StyleFn","iced::overlay::menu::StyleFn","iced::widget::button::StyleFn","iced::widget::checkbox::StyleFn","iced::widget::container::StyleFn","iced::widget::pane_grid::StyleFn","iced::widget::pick_list::StyleFn","iced::widget::progress_bar::StyleFn","iced::widget::radio::StyleFn","iced::widget::rule::StyleFn","iced::widget::scrollable::StyleFn","iced::widget::slider::StyleFn","iced::widget::text_editor::StyleFn","iced::widget::text_input::StyleFn","iced::widget::toggler::StyleFn","iced::widget::svg::StyleFn","iced::widget::qr_code::StyleFn"],["
1.0.0 · Source§

impl<T, A> Deref for Box<T, A>
where\n A: Allocator,\n T: ?Sized,

Source§

type Target = T

The resulting type after dereferencing.
Source§

fn deref(&self) -> &T

Dereferences the value.
","Deref","iced::widget::text::StyleFn","iced::overlay::menu::StyleFn","iced::widget::button::StyleFn","iced::widget::checkbox::StyleFn","iced::widget::container::StyleFn","iced::widget::pane_grid::StyleFn","iced::widget::pick_list::StyleFn","iced::widget::progress_bar::StyleFn","iced::widget::radio::StyleFn","iced::widget::rule::StyleFn","iced::widget::scrollable::StyleFn","iced::widget::slider::StyleFn","iced::widget::text_editor::StyleFn","iced::widget::text_input::StyleFn","iced::widget::toggler::StyleFn","iced::widget::svg::StyleFn","iced::widget::qr_code::StyleFn"],["
1.0.0 · Source§

impl<T, A> DerefMut for Box<T, A>
where\n A: Allocator,\n T: ?Sized,

Source§

fn deref_mut(&mut self) -> &mut T

Mutably dereferences the value.
","DerefMut","iced::widget::text::StyleFn","iced::overlay::menu::StyleFn","iced::widget::button::StyleFn","iced::widget::checkbox::StyleFn","iced::widget::container::StyleFn","iced::widget::pane_grid::StyleFn","iced::widget::pick_list::StyleFn","iced::widget::progress_bar::StyleFn","iced::widget::radio::StyleFn","iced::widget::rule::StyleFn","iced::widget::scrollable::StyleFn","iced::widget::slider::StyleFn","iced::widget::text_editor::StyleFn","iced::widget::text_input::StyleFn","iced::widget::toggler::StyleFn","iced::widget::svg::StyleFn","iced::widget::qr_code::StyleFn"],["
Source§

impl<'de, T> Deserialize<'de> for Box<T>
where\n T: Deserialize<'de>,

Available on crate features std or alloc only.
Source§

fn deserialize<D>(\n deserializer: D,\n) -> Result<Box<T>, <D as Deserializer<'de>>::Error>
where\n D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
","Deserialize<'de>","iced::widget::text::StyleFn","iced::overlay::menu::StyleFn","iced::widget::button::StyleFn","iced::widget::checkbox::StyleFn","iced::widget::container::StyleFn","iced::widget::pane_grid::StyleFn","iced::widget::pick_list::StyleFn","iced::widget::progress_bar::StyleFn","iced::widget::radio::StyleFn","iced::widget::rule::StyleFn","iced::widget::scrollable::StyleFn","iced::widget::slider::StyleFn","iced::widget::text_editor::StyleFn","iced::widget::text_input::StyleFn","iced::widget::toggler::StyleFn","iced::widget::svg::StyleFn","iced::widget::qr_code::StyleFn"],["
1.0.0 · Source§

impl<T, A> Display for Box<T, A>
where\n T: Display + ?Sized,\n A: Allocator,

Source§

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

Formats the value using the given formatter. Read more
","Display","iced::widget::text::StyleFn","iced::overlay::menu::StyleFn","iced::widget::button::StyleFn","iced::widget::checkbox::StyleFn","iced::widget::container::StyleFn","iced::widget::pane_grid::StyleFn","iced::widget::pick_list::StyleFn","iced::widget::progress_bar::StyleFn","iced::widget::radio::StyleFn","iced::widget::rule::StyleFn","iced::widget::scrollable::StyleFn","iced::widget::slider::StyleFn","iced::widget::text_editor::StyleFn","iced::widget::text_input::StyleFn","iced::widget::toggler::StyleFn","iced::widget::svg::StyleFn","iced::widget::qr_code::StyleFn"],["
1.0.0 · Source§

impl<I, A> DoubleEndedIterator for Box<I, A>
where\n I: DoubleEndedIterator + ?Sized,\n A: Allocator,

Source§

fn next_back(&mut self) -> Option<<I as Iterator>::Item>

Removes and returns an element from the end of the iterator. Read more
Source§

fn nth_back(&mut self, n: usize) -> Option<<I as Iterator>::Item>

Returns the nth element from the end of the iterator. Read more
Source§

fn advance_back_by(&mut self, n: usize) -> Result<(), NonZero<usize>>

🔬This is a nightly-only experimental API. (iter_advance_by)
Advances the iterator from the back by n elements. Read more
1.27.0 · Source§

fn try_rfold<B, F, R>(&mut self, init: B, f: F) -> R
where\n Self: Sized,\n F: FnMut(B, Self::Item) -> R,\n R: Try<Output = B>,

This is the reverse version of Iterator::try_fold(): it takes\nelements starting from the back of the iterator. Read more
1.27.0 · Source§

fn rfold<B, F>(self, init: B, f: F) -> B
where\n Self: Sized,\n F: FnMut(B, Self::Item) -> B,

An iterator method that reduces the iterator’s elements to a single,\nfinal value, starting from the back. Read more
1.27.0 · Source§

fn rfind<P>(&mut self, predicate: P) -> Option<Self::Item>
where\n Self: Sized,\n P: FnMut(&Self::Item) -> bool,

Searches for an element of an iterator from the back that satisfies a predicate. Read more
","DoubleEndedIterator","iced::widget::text::StyleFn","iced::overlay::menu::StyleFn","iced::widget::button::StyleFn","iced::widget::checkbox::StyleFn","iced::widget::container::StyleFn","iced::widget::pane_grid::StyleFn","iced::widget::pick_list::StyleFn","iced::widget::progress_bar::StyleFn","iced::widget::radio::StyleFn","iced::widget::rule::StyleFn","iced::widget::scrollable::StyleFn","iced::widget::slider::StyleFn","iced::widget::text_editor::StyleFn","iced::widget::text_input::StyleFn","iced::widget::toggler::StyleFn","iced::widget::svg::StyleFn","iced::widget::qr_code::StyleFn"],["
1.0.0 · Source§

impl<T, A> Drop for Box<T, A>
where\n A: Allocator,\n T: ?Sized,

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more
","Drop","iced::widget::text::StyleFn","iced::overlay::menu::StyleFn","iced::widget::button::StyleFn","iced::widget::checkbox::StyleFn","iced::widget::container::StyleFn","iced::widget::pane_grid::StyleFn","iced::widget::pick_list::StyleFn","iced::widget::progress_bar::StyleFn","iced::widget::radio::StyleFn","iced::widget::rule::StyleFn","iced::widget::scrollable::StyleFn","iced::widget::slider::StyleFn","iced::widget::text_editor::StyleFn","iced::widget::text_input::StyleFn","iced::widget::toggler::StyleFn","iced::widget::svg::StyleFn","iced::widget::qr_code::StyleFn"],["
§

impl<M, P> DynamicDataProvider<M> for Box<P>
where\n M: DataMarker,\n P: DynamicDataProvider<M> + ?Sized,

§

fn load_data(\n &self,\n key: DataKey,\n req: DataRequest<'_>,\n) -> Result<DataResponse<M>, DataError>

Query the provider for data, returning the result. Read more
","DynamicDataProvider","iced::widget::text::StyleFn","iced::overlay::menu::StyleFn","iced::widget::button::StyleFn","iced::widget::checkbox::StyleFn","iced::widget::container::StyleFn","iced::widget::pane_grid::StyleFn","iced::widget::pick_list::StyleFn","iced::widget::progress_bar::StyleFn","iced::widget::radio::StyleFn","iced::widget::rule::StyleFn","iced::widget::scrollable::StyleFn","iced::widget::slider::StyleFn","iced::widget::text_editor::StyleFn","iced::widget::text_input::StyleFn","iced::widget::toggler::StyleFn","iced::widget::svg::StyleFn","iced::widget::qr_code::StyleFn"],["
§

impl<T> EncodeAsVarULE<T> for Box<T>
where\n T: VarULE + ?Sized,

§

fn encode_var_ule_as_slices<R>(&self, cb: impl FnOnce(&[&[u8]]) -> R) -> R

Calls cb with a piecewise list of byte slices that when concatenated\nproduce the memory pattern of the corresponding instance of T. Read more
§

fn encode_var_ule_len(&self) -> usize

Return the length, in bytes, of the corresponding [VarULE] type
§

fn encode_var_ule_write(&self, dst: &mut [u8])

Write the corresponding [VarULE] type to the dst buffer. dst should\nbe the size of [Self::encode_var_ule_len()]
","EncodeAsVarULE","iced::widget::text::StyleFn","iced::overlay::menu::StyleFn","iced::widget::button::StyleFn","iced::widget::checkbox::StyleFn","iced::widget::container::StyleFn","iced::widget::pane_grid::StyleFn","iced::widget::pick_list::StyleFn","iced::widget::progress_bar::StyleFn","iced::widget::radio::StyleFn","iced::widget::rule::StyleFn","iced::widget::scrollable::StyleFn","iced::widget::slider::StyleFn","iced::widget::text_editor::StyleFn","iced::widget::text_input::StyleFn","iced::widget::toggler::StyleFn","iced::widget::svg::StyleFn","iced::widget::qr_code::StyleFn"],["
1.8.0 · Source§

impl<E> Error for Box<E>
where\n E: Error,

Source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
Source§

fn provide<'b>(&'b self, request: &mut Request<'b>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
","Error","iced::widget::text::StyleFn","iced::overlay::menu::StyleFn","iced::widget::button::StyleFn","iced::widget::checkbox::StyleFn","iced::widget::container::StyleFn","iced::widget::pane_grid::StyleFn","iced::widget::pick_list::StyleFn","iced::widget::progress_bar::StyleFn","iced::widget::radio::StyleFn","iced::widget::rule::StyleFn","iced::widget::scrollable::StyleFn","iced::widget::slider::StyleFn","iced::widget::text_editor::StyleFn","iced::widget::text_input::StyleFn","iced::widget::toggler::StyleFn","iced::widget::svg::StyleFn","iced::widget::qr_code::StyleFn"],["
§

impl<T> EventSource for Box<T>
where\n T: EventSource,

Blanket implementation for boxed event sources. [EventSource] is not an\nobject safe trait, so this does not include trait objects.

\n
§

const NEEDS_EXTRA_LIFECYCLE_EVENTS: bool = T::NEEDS_EXTRA_LIFECYCLE_EVENTS

Whether this source needs to be sent the [EventSource::before_sleep]\nand [EventSource::before_handle_events] notifications. These are opt-in because\nthey require more expensive checks, and almost all sources will not need these notifications
§

type Event = <T as EventSource>::Event

The type of events generated by your source.
§

type Metadata = <T as EventSource>::Metadata

Some metadata of your event source Read more
§

type Ret = <T as EventSource>::Ret

The return type of the user callback Read more
§

type Error = <T as EventSource>::Error

The error type returned from\nprocess_events() (not the user callback!).
§

fn process_events<F>(\n &mut self,\n readiness: Readiness,\n token: Token,\n callback: F,\n) -> Result<PostAction, <Box<T> as EventSource>::Error>
where\n F: FnMut(<Box<T> as EventSource>::Event, &mut <Box<T> as EventSource>::Metadata) -> <Box<T> as EventSource>::Ret,

Process any relevant events Read more
§

fn register(\n &mut self,\n poll: &mut Poll,\n token_factory: &mut TokenFactory,\n) -> Result<(), Error>

Register yourself to this poll instance Read more
§

fn reregister(\n &mut self,\n poll: &mut Poll,\n token_factory: &mut TokenFactory,\n) -> Result<(), Error>

Re-register your file descriptors Read more
§

fn unregister(&mut self, poll: &mut Poll) -> Result<(), Error>

Unregister your file descriptors Read more
§

fn before_sleep(&mut self) -> Result<Option<(Readiness, Token)>, Error>

Notification that a single poll is about to begin Read more
§

fn before_handle_events(&mut self, events: EventIterator<'_>)

Notification that polling is complete, and [EventSource::process_events] will\nbe called with the given events for this source. The iterator may be empty,\nwhich indicates that no events were generated for this source Read more
","EventSource","iced::widget::text::StyleFn","iced::overlay::menu::StyleFn","iced::widget::button::StyleFn","iced::widget::checkbox::StyleFn","iced::widget::container::StyleFn","iced::widget::pane_grid::StyleFn","iced::widget::pick_list::StyleFn","iced::widget::progress_bar::StyleFn","iced::widget::radio::StyleFn","iced::widget::rule::StyleFn","iced::widget::scrollable::StyleFn","iced::widget::slider::StyleFn","iced::widget::text_editor::StyleFn","iced::widget::text_input::StyleFn","iced::widget::toggler::StyleFn","iced::widget::svg::StyleFn","iced::widget::qr_code::StyleFn"],["
1.0.0 · Source§

impl<I, A> ExactSizeIterator for Box<I, A>
where\n I: ExactSizeIterator + ?Sized,\n A: Allocator,

Source§

fn len(&self) -> usize

Returns the exact remaining length of the iterator. Read more
Source§

fn is_empty(&self) -> bool

🔬This is a nightly-only experimental API. (exact_size_is_empty)
Returns true if the iterator is empty. Read more
","ExactSizeIterator","iced::widget::text::StyleFn","iced::overlay::menu::StyleFn","iced::widget::button::StyleFn","iced::widget::checkbox::StyleFn","iced::widget::container::StyleFn","iced::widget::pane_grid::StyleFn","iced::widget::pick_list::StyleFn","iced::widget::progress_bar::StyleFn","iced::widget::radio::StyleFn","iced::widget::rule::StyleFn","iced::widget::scrollable::StyleFn","iced::widget::slider::StyleFn","iced::widget::text_editor::StyleFn","iced::widget::text_input::StyleFn","iced::widget::toggler::StyleFn","iced::widget::svg::StyleFn","iced::widget::qr_code::StyleFn"],["
1.35.0 · Source§

impl<Args, F, A> Fn<Args> for Box<F, A>
where\n Args: Tuple,\n F: Fn<Args> + ?Sized,\n A: Allocator,

Source§

extern "rust-call" fn call(\n &self,\n args: Args,\n) -> <Box<F, A> as FnOnce<Args>>::Output

🔬This is a nightly-only experimental API. (fn_traits)
Performs the call operation.
","Fn","iced::widget::text::StyleFn","iced::overlay::menu::StyleFn","iced::widget::button::StyleFn","iced::widget::checkbox::StyleFn","iced::widget::container::StyleFn","iced::widget::pane_grid::StyleFn","iced::widget::pick_list::StyleFn","iced::widget::progress_bar::StyleFn","iced::widget::radio::StyleFn","iced::widget::rule::StyleFn","iced::widget::scrollable::StyleFn","iced::widget::slider::StyleFn","iced::widget::text_editor::StyleFn","iced::widget::text_input::StyleFn","iced::widget::toggler::StyleFn","iced::widget::svg::StyleFn","iced::widget::qr_code::StyleFn"],["
1.35.0 · Source§

impl<Args, F, A> FnMut<Args> for Box<F, A>
where\n Args: Tuple,\n F: FnMut<Args> + ?Sized,\n A: Allocator,

Source§

extern "rust-call" fn call_mut(\n &mut self,\n args: Args,\n) -> <Box<F, A> as FnOnce<Args>>::Output

🔬This is a nightly-only experimental API. (fn_traits)
Performs the call operation.
","FnMut","iced::widget::text::StyleFn","iced::overlay::menu::StyleFn","iced::widget::button::StyleFn","iced::widget::checkbox::StyleFn","iced::widget::container::StyleFn","iced::widget::pane_grid::StyleFn","iced::widget::pick_list::StyleFn","iced::widget::progress_bar::StyleFn","iced::widget::radio::StyleFn","iced::widget::rule::StyleFn","iced::widget::scrollable::StyleFn","iced::widget::slider::StyleFn","iced::widget::text_editor::StyleFn","iced::widget::text_input::StyleFn","iced::widget::toggler::StyleFn","iced::widget::svg::StyleFn","iced::widget::qr_code::StyleFn"],["
1.35.0 · Source§

impl<Args, F, A> FnOnce<Args> for Box<F, A>
where\n Args: Tuple,\n F: FnOnce<Args> + ?Sized,\n A: Allocator,

Source§

type Output = <F as FnOnce<Args>>::Output

The returned type after the call operator is used.
Source§

extern "rust-call" fn call_once(\n self,\n args: Args,\n) -> <Box<F, A> as FnOnce<Args>>::Output

🔬This is a nightly-only experimental API. (fn_traits)
Performs the call operation.
","FnOnce","iced::widget::text::StyleFn","iced::overlay::menu::StyleFn","iced::widget::button::StyleFn","iced::widget::checkbox::StyleFn","iced::widget::container::StyleFn","iced::widget::pane_grid::StyleFn","iced::widget::pick_list::StyleFn","iced::widget::progress_bar::StyleFn","iced::widget::radio::StyleFn","iced::widget::rule::StyleFn","iced::widget::scrollable::StyleFn","iced::widget::slider::StyleFn","iced::widget::text_editor::StyleFn","iced::widget::text_input::StyleFn","iced::widget::toggler::StyleFn","iced::widget::svg::StyleFn","iced::widget::qr_code::StyleFn"],["
Source§

impl<Theme> From<Style> for Box<dyn Fn(&Theme) -> Style + '_>

Source§

fn from(style: Style) -> Box<dyn Fn(&Theme) -> Style + '_>

Converts to this type from the input type.
","From