diff --git a/futures_core/all.html b/futures_core/all.html index 5e044fbd62..66ee14f3ea 100644 --- a/futures_core/all.html +++ b/futures_core/all.html @@ -1 +1 @@ -
Futures.
+Futures.
pub use core::future::Future;
Result
values that includes
a variety of adapters tailored to such futures.Future
for use in cases where you can’t
diff --git a/futures_core/future/trait.FusedFuture.html b/futures_core/future/trait.FusedFuture.html
index af35a7492a..d9a4d1c41c 100644
--- a/futures_core/future/trait.FusedFuture.html
+++ b/futures_core/future/trait.FusedFuture.html
@@ -1,4 +1,4 @@
-pub trait FusedFuture: Future {
+FusedFuture in futures_core::future - Rust pub trait FusedFuture: Future {
// Required method
fn is_terminated(&self) -> bool;
}
Expand description
A future which tracks whether or not the underlying future
diff --git a/futures_core/future/trait.TryFuture.html b/futures_core/future/trait.TryFuture.html
index eb4aa11f8e..f5c5a4401e 100644
--- a/futures_core/future/trait.TryFuture.html
+++ b/futures_core/future/trait.TryFuture.html
@@ -1,4 +1,4 @@
-
TryFuture in futures_core::future - Rust pub trait TryFuture: Future + Sealed {
+TryFuture in futures_core::future - Rust pub trait TryFuture: Future + Sealed {
type Ok;
type Error;
diff --git a/futures_core/future/type.BoxFuture.html b/futures_core/future/type.BoxFuture.html
index e835e406b4..93f5f30f51 100644
--- a/futures_core/future/type.BoxFuture.html
+++ b/futures_core/future/type.BoxFuture.html
@@ -1,4 +1,4 @@
-BoxFuture in futures_core::future - Rust pub type BoxFuture<'a, T> = Pin<Box<dyn Future<Output = T> + Send + 'a>>;
Expand description
An owned dynamically typed Future
for use in cases where you can’t
+
BoxFuture in futures_core::future - Rust
\ No newline at end of file
diff --git a/futures_core/future/type.LocalBoxFuture.html b/futures_core/future/type.LocalBoxFuture.html
index a19b1411b4..73e898cbb9 100644
--- a/futures_core/future/type.LocalBoxFuture.html
+++ b/futures_core/future/type.LocalBoxFuture.html
@@ -1,3 +1,3 @@
-LocalBoxFuture in futures_core::future - Rust pub type LocalBoxFuture<'a, T> = Pin<Box<dyn Future<Output = T> + 'a>>;
Expand description
BoxFuture
, but without the Send
requirement.
+LocalBoxFuture in futures_core::future - Rust
\ No newline at end of file
diff --git a/futures_core/index.html b/futures_core/index.html
index cc0cf20d46..e30a177100 100644
--- a/futures_core/index.html
+++ b/futures_core/index.html
@@ -1,2 +1,2 @@
-futures_core - Rust Expand description
Core traits and types for asynchronous operations in Rust.
+futures_core - Rust Expand description
Core traits and types for asynchronous operations in Rust.
Re-exports§
pub use self::future::FusedFuture;
pub use self::future::Future;
pub use self::future::TryFuture;
pub use self::stream::FusedStream;
pub use self::stream::Stream;
pub use self::stream::TryStream;
Modules§
- Futures.
- Asynchronous streams.
- Task notification.
Macros§
- Extracts the successful type of a
Poll<T>
.
\ No newline at end of file
diff --git a/futures_core/macro.ready.html b/futures_core/macro.ready.html
index ed2c690670..7907276233 100644
--- a/futures_core/macro.ready.html
+++ b/futures_core/macro.ready.html
@@ -1,4 +1,4 @@
-ready in futures_core - Rust macro_rules! ready {
+ready in futures_core - Rust macro_rules! ready {
($e:expr $(,)?) => { ... };
}
Expand description
Extracts the successful type of a Poll<T>
.
This macro bakes in propagation of Pending
signals by returning early.
diff --git a/futures_core/stream/index.html b/futures_core/stream/index.html
index e2f232356b..3b95797537 100644
--- a/futures_core/stream/index.html
+++ b/futures_core/stream/index.html
@@ -1,4 +1,4 @@
-futures_core::stream - Rust Expand description
Asynchronous streams.
+futures_core::stream - Rust Expand description
Asynchronous streams.
Traits§
- A stream which tracks whether or not the underlying stream
should no longer be polled.
- A stream of values produced asynchronously.
- A convenience for streams that return
Result
values that includes
a variety of adapters tailored to such futures.
Type Aliases§
- An owned dynamically typed
Stream
for use in cases where you can’t
diff --git a/futures_core/stream/trait.FusedStream.html b/futures_core/stream/trait.FusedStream.html
index e17e627fe7..7cf8e8b050 100644
--- a/futures_core/stream/trait.FusedStream.html
+++ b/futures_core/stream/trait.FusedStream.html
@@ -1,4 +1,4 @@
-FusedStream in futures_core::stream - Rust pub trait FusedStream: Stream {
+FusedStream in futures_core::stream - Rust pub trait FusedStream: Stream {
// Required method
fn is_terminated(&self) -> bool;
}
Expand description
A stream which tracks whether or not the underlying stream
diff --git a/futures_core/stream/trait.Stream.html b/futures_core/stream/trait.Stream.html
index 0995699ce9..e709c2f05b 100644
--- a/futures_core/stream/trait.Stream.html
+++ b/futures_core/stream/trait.Stream.html
@@ -1,4 +1,4 @@
-
Stream in futures_core::stream - Rust pub trait Stream {
+Stream in futures_core::stream - Rust pub trait Stream {
type Item;
// Required method
diff --git a/futures_core/stream/trait.TryStream.html b/futures_core/stream/trait.TryStream.html
index e50711c728..0a175bc1ad 100644
--- a/futures_core/stream/trait.TryStream.html
+++ b/futures_core/stream/trait.TryStream.html
@@ -1,4 +1,4 @@
-TryStream in futures_core::stream - Rust pub trait TryStream: Stream + Sealed {
+TryStream in futures_core::stream - Rust pub trait TryStream: Stream + Sealed {
type Ok;
type Error;
diff --git a/futures_core/stream/type.BoxStream.html b/futures_core/stream/type.BoxStream.html
index c918f6d15b..590932f065 100644
--- a/futures_core/stream/type.BoxStream.html
+++ b/futures_core/stream/type.BoxStream.html
@@ -1,4 +1,4 @@
-BoxStream in futures_core::stream - Rust pub type BoxStream<'a, T> = Pin<Box<dyn Stream<Item = T> + Send + 'a>>;
Expand description
An owned dynamically typed Stream
for use in cases where you can’t
+
BoxStream in futures_core::stream - Rust
\ No newline at end of file
diff --git a/futures_core/stream/type.LocalBoxStream.html b/futures_core/stream/type.LocalBoxStream.html
index 325f46718a..4b6bf8d293 100644
--- a/futures_core/stream/type.LocalBoxStream.html
+++ b/futures_core/stream/type.LocalBoxStream.html
@@ -1,3 +1,3 @@
-LocalBoxStream in futures_core::stream - Rust pub type LocalBoxStream<'a, T> = Pin<Box<dyn Stream<Item = T> + 'a>>;
Expand description
BoxStream
, but without the Send
requirement.
+LocalBoxStream in futures_core::stream - Rust
\ No newline at end of file
diff --git a/futures_core/task/index.html b/futures_core/task/index.html
index 62d806021f..9ddfd7f951 100644
--- a/futures_core/task/index.html
+++ b/futures_core/task/index.html
@@ -1,2 +1,2 @@
-futures_core::task - Rust Expand description
Task notification.
+futures_core::task - Rust
\ No newline at end of file
diff --git a/help.html b/help.html
index 693801218d..5cac25c69a 100644
--- a/help.html
+++ b/help.html
@@ -1 +1 @@
-Help Rustdoc help
Back
\ No newline at end of file
+Help Rustdoc help
Back
\ No newline at end of file
diff --git a/iced/advanced/clipboard/enum.Kind.html b/iced/advanced/clipboard/enum.Kind.html
index 4f6ac9354d..bacfcf132e 100644
--- a/iced/advanced/clipboard/enum.Kind.html
+++ b/iced/advanced/clipboard/enum.Kind.html
@@ -1,4 +1,4 @@
-Kind in iced::advanced::clipboard - Rust pub enum Kind {
+Kind in iced::advanced::clipboard - Rust pub enum Kind {
Standard,
Primary,
}
Available on crate feature advanced
only.Expand description
The kind of Clipboard
.
diff --git a/iced/advanced/clipboard/index.html b/iced/advanced/clipboard/index.html
index a831634cd1..c6ccf5eabb 100644
--- a/iced/advanced/clipboard/index.html
+++ b/iced/advanced/clipboard/index.html
@@ -1,3 +1,3 @@
-iced::advanced::clipboard - Rust Available on crate feature advanced
only.Expand description
Access the clipboard.
+iced::advanced::clipboard - Rust
\ No newline at end of file
diff --git a/iced/advanced/clipboard/struct.Null.html b/iced/advanced/clipboard/struct.Null.html
index ee447e079e..196e7a2521 100644
--- a/iced/advanced/clipboard/struct.Null.html
+++ b/iced/advanced/clipboard/struct.Null.html
@@ -1,4 +1,4 @@
-Null in iced::advanced::clipboard - Rust pub struct Null;
Available on crate feature advanced
only.Expand description
A null implementation of the Clipboard
trait.
+Null in iced::advanced::clipboard - Rust pub struct Null;
Available on crate feature advanced
only.Expand description
A null implementation of the Clipboard
trait.
Trait Implementations§
Source§impl Copy for Null
Auto Trait Implementations§
§impl Freeze for Null
§impl RefUnwindSafe for Null
§impl Send for Null
§impl Sync for Null
§impl Unpin for Null
§impl UnwindSafe for Null
Blanket Implementations§
Source§impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for Swhere
T: Real + Zero + Arithmetics + Clone,
Swp: WhitePoint<T>,
diff --git a/iced/advanced/clipboard/trait.Clipboard.html b/iced/advanced/clipboard/trait.Clipboard.html
index 0c3c45cd55..b5167335a2 100644
--- a/iced/advanced/clipboard/trait.Clipboard.html
+++ b/iced/advanced/clipboard/trait.Clipboard.html
@@ -1,4 +1,4 @@
-Clipboard in iced::advanced::clipboard - Rust pub trait Clipboard {
+Clipboard in iced::advanced::clipboard - Rust pub trait Clipboard {
// Required methods
fn read(&self, kind: Kind) -> Option<String>;
fn write(&mut self, kind: Kind, contents: String);
diff --git a/iced/advanced/image/enum.FilterMethod.html b/iced/advanced/image/enum.FilterMethod.html
index 93d2eef8b1..516d90a433 100644
--- a/iced/advanced/image/enum.FilterMethod.html
+++ b/iced/advanced/image/enum.FilterMethod.html
@@ -1,4 +1,4 @@
-FilterMethod in iced::advanced::image - Rust pub enum FilterMethod {
+FilterMethod in iced::advanced::image - Rust pub enum FilterMethod {
Linear,
Nearest,
}
Available on crate feature advanced
only.Expand description
Image filtering strategy.
diff --git a/iced/advanced/image/enum.Handle.html b/iced/advanced/image/enum.Handle.html
index 02ab8a2185..7e490b339a 100644
--- a/iced/advanced/image/enum.Handle.html
+++ b/iced/advanced/image/enum.Handle.html
@@ -1,4 +1,4 @@
-Handle in iced::advanced::image - Rust pub enum Handle {
+Handle in iced::advanced::image - Rust pub enum Handle {
Path(Id, PathBuf),
Bytes(Id, Bytes),
Rgba {
diff --git a/iced/advanced/image/index.html b/iced/advanced/image/index.html
index 4ac70dd7c7..3e4301f79a 100644
--- a/iced/advanced/image/index.html
+++ b/iced/advanced/image/index.html
@@ -1,2 +1,2 @@
-iced::advanced::image - Rust Available on crate feature advanced
only.Expand description
Load and draw raster graphics.
+iced::advanced::image - Rust Available on crate feature advanced
only.Expand description
Load and draw raster graphics.
Structs§
- A cheaply cloneable and sliceable chunk of contiguous memory.
- The unique identifier of some
Handle
data. - A raster image that can be drawn.
Enums§
- Image filtering strategy.
- A handle of some image data.
Traits§
- A
Renderer
that can render raster graphics.
\ No newline at end of file
diff --git a/iced/advanced/image/struct.Bytes.html b/iced/advanced/image/struct.Bytes.html
index 0576146ee6..24b4528a2b 100644
--- a/iced/advanced/image/struct.Bytes.html
+++ b/iced/advanced/image/struct.Bytes.html
@@ -1,4 +1,4 @@
-Bytes in iced::advanced::image - Rust Struct Bytes
pub struct Bytes { /* private fields */ }
Available on crate feature advanced
only.Expand description
A cheaply cloneable and sliceable chunk of contiguous memory.
+Bytes in iced::advanced::image - Rust Struct Bytes
pub struct Bytes { /* private fields */ }
Available on crate feature advanced
only.Expand description
A cheaply cloneable and sliceable chunk of contiguous memory.
Bytes
is an efficient container for storing and operating on contiguous
slices of memory. It is intended for use primarily in networking code, but
could have applications elsewhere as well.
@@ -468,7 +468,7 @@ §Examplesassert_eq!(iter.next().unwrap(), &['r', 'e']);
assert!(iter.next().is_none());
assert_eq!(iter.remainder(), &['m']);
-Sourcepub unsafe fn as_chunks_unchecked<const N: usize>(&self) -> &[[T; N]]
🔬This is a nightly-only experimental API. (slice_as_chunks
)
Splits the slice into a slice of N
-element arrays,
+
Sourcepub unsafe fn as_chunks_unchecked<const N: usize>(&self) -> &[[T; N]]
🔬This is a nightly-only experimental API. (slice_as_chunks
)
Splits the slice into a slice of N
-element arrays,
assuming that there’s no remainder.
§Safety
This may only be called when
@@ -491,7 +491,7 @@ §Examples// These would be unsound:
// let chunks: &[[_; 5]] = slice.as_chunks_unchecked() // The slice length is not a multiple of 5
// let chunks: &[[_; 0]] = slice.as_chunks_unchecked() // Zero-length chunks are never allowed
-Sourcepub fn as_chunks<const N: usize>(&self) -> (&[[T; N]], &[T])
🔬This is a nightly-only experimental API. (slice_as_chunks
)
Splits the slice into a slice of N
-element arrays,
+
Sourcepub fn as_rchunks<const N: usize>(&self) -> (&[T], &[[T; N]])
🔬This is a nightly-only experimental API. (slice_as_chunks
)
Splits the slice into a slice of N
-element arrays,
+
Sourcepub fn as_rchunks<const N: usize>(&self) -> (&[T], &[[T; N]])
🔬This is a nightly-only experimental API. (slice_as_chunks
)
Splits the slice into a slice of N
-element arrays,
starting at the end of the slice,
and a remainder slice with length strictly less than N
.
§Panics
@@ -524,7 +524,7 @@ §Exampleslet (remainder, chunks) = slice.as_rchunks();
assert_eq!(remainder, &['l']);
assert_eq!(chunks, &[['o', 'r'], ['e', 'm']]);
-Sourcepub fn array_chunks<const N: usize>(&self) -> ArrayChunks<'_, T, N>
🔬This is a nightly-only experimental API. (array_chunks
)
Returns an iterator over N
elements of the slice at a time, starting at the
+
Sourcepub fn array_chunks<const N: usize>(&self) -> ArrayChunks<'_, T, N>
🔬This is a nightly-only experimental API. (array_chunks
)
Returns an iterator over N
elements of the slice at a time, starting at the
beginning of the slice.
The chunks are array references and do not overlap. If N
does not divide the
length of the slice, then the last up to N-1
elements will be omitted and can be
@@ -541,7 +541,7 @@
§Examplesassert_eq!(iter.next().unwrap(), &['r', 'e']);
assert!(iter.next().is_none());
assert_eq!(iter.remainder(), &['m']);
- Sourcepub fn array_windows<const N: usize>(&self) -> ArrayWindows<'_, T, N>
🔬This is a nightly-only experimental API. (array_windows
)
Returns an iterator over overlapping windows of N
elements of a slice,
+
Sourcepub fn array_windows<const N: usize>(&self) -> ArrayWindows<'_, T, N>
🔬This is a nightly-only experimental API. (array_windows
)
Returns an iterator over overlapping windows of N
elements of a slice,
starting at the beginning of the slice.
This is the const generic equivalent of windows
.
If N
is greater than the size of the slice, it will return no windows.
@@ -556,7 +556,7 @@ §Examplesassert_eq!(iter.next().unwrap(), &[1, 2]);
assert_eq!(iter.next().unwrap(), &[2, 3]);
assert!(iter.next().is_none());
-
1.31.0 · Sourcepub fn rchunks(&self, chunk_size: usize) -> RChunks<'_, T>
Returns an iterator over chunk_size
elements of the slice at a time, starting at the end
+
1.31.0 · Sourcepub fn rchunks(&self, chunk_size: usize) -> RChunks<'_, T>
Returns an iterator over chunk_size
elements of the slice at a time, starting at the end
of the slice.
The chunks are slices and do not overlap. If chunk_size
does not divide the length of the
slice, then the last chunk will not have length chunk_size
.
@@ -572,7 +572,7 @@ §Examplesassert_eq!(iter.next().unwrap(), &['o', 'r']);
assert_eq!(iter.next().unwrap(), &['l']);
assert!(iter.next().is_none());
-
1.31.0 · Sourcepub fn rchunks_exact(&self, chunk_size: usize) -> RChunksExact<'_, T>
Returns an iterator over chunk_size
elements of the slice at a time, starting at the
+
1.31.0 · Sourcepub fn rchunks_exact(&self, chunk_size: usize) -> RChunksExact<'_, T>
Returns an iterator over chunk_size
elements of the slice at a time, starting at the
end of the slice.
The chunks are slices and do not overlap. If chunk_size
does not divide the length of the
slice, then the last up to chunk_size-1
elements will be omitted and can be retrieved
@@ -591,7 +591,7 @@
§Examplesassert_eq!(iter.next().unwrap(), &['o', 'r']);
assert!(iter.next().is_none());
assert_eq!(iter.remainder(), &['l']);
-1.77.0 · Sourcepub fn chunk_by<F>(&self, pred: F) -> ChunkBy<'_, T, F>
Returns an iterator over the slice producing non-overlapping runs
of elements using the predicate to separate them.
The predicate is called for every pair of consecutive elements,
@@ -616,7 +616,7 @@
§Examplesassert_eq!(iter.next(), Some(&[2, 3][..]));
assert_eq!(iter.next(), Some(&[2, 3, 4][..]));
assert_eq!(iter.next(), None);
-1.0.0 · Sourcepub fn split_at(&self, mid: usize) -> (&[T], &[T])
Divides one slice into two at an index.
+1.0.0 · Sourcepub fn split_at(&self, mid: usize) -> (&[T], &[T])
Divides one slice into two at an index.
The first will contain all indices from [0, mid)
(excluding
the index mid
itself) and the second will contain all
indices from [mid, len)
(excluding the index len
itself).
@@ -643,7 +643,7 @@ §Examplesassert_eq!(left, [1, 2, 3, 4, 5, 6]);
assert_eq!(right, []);
}
-
1.79.0 · Sourcepub unsafe fn split_at_unchecked(&self, mid: usize) -> (&[T], &[T])
Divides one slice into two at an index, without doing bounds checking.
+1.79.0 · Sourcepub unsafe fn split_at_unchecked(&self, mid: usize) -> (&[T], &[T])
Divides one slice into two at an index, without doing bounds checking.
The first will contain all indices from [0, mid)
(excluding
the index mid
itself) and the second will contain all
indices from [mid, len)
(excluding the index len
itself).
@@ -672,7 +672,7 @@ §Examplesassert_eq!(left, [1, 2, 3, 4, 5, 6]);
assert_eq!(right, []);
}
-
1.80.0 · Sourcepub fn split_at_checked(&self, mid: usize) -> Option<(&[T], &[T])>
Divides one slice into two at an index, returning None
if the slice is
+
1.80.0 · Sourcepub fn split_at_checked(&self, mid: usize) -> Option<(&[T], &[T])>
Divides one slice into two at an index, returning None
if the slice is
too short.
If mid ≤ len
returns a pair of slices where the first will contain all
indices from [0, mid)
(excluding the index mid
itself) and the
@@ -701,7 +701,7 @@
§Examplesassert_eq!(None, v.split_at_checked(7));
-
1.51.0 · Sourcepub fn split_inclusive<F>(&self, pred: F) -> SplitInclusive<'_, T, F>where
+
1.51.0 · Sourcepub fn split_inclusive<F>(&self, pred: F) -> SplitInclusive<'_, T, F>
Returns an iterator over subslices separated by elements that match
pred
. The matched element is contained in the end of the previous
subslice as a terminator.
@@ -753,7 +753,7 @@ §Examplesassert_eq!(iter.next().unwrap(), &[3]);
assert_eq!(iter.next().unwrap(), &[10, 40, 33]);
assert!(iter.next().is_none());
-1.27.0 · Sourcepub fn rsplit<F>(&self, pred: F) -> RSplit<'_, T, F>
Returns an iterator over subslices separated by elements that match
pred
, starting at the end of the slice and working backwards.
The matched element is not contained in the subslices.
@@ -774,7 +774,7 @@ §Examplesassert_eq!(it.next().unwrap(), &[1, 1]);
assert_eq!(it.next().unwrap(), &[]);
assert_eq!(it.next(), None);
-1.0.0 · Sourcepub fn splitn<F>(&self, n: usize, pred: F) -> SplitN<'_, T, F>
Returns an iterator over subslices separated by elements that match
pred
, limited to returning at most n
items. The matched element is
not contained in the subslices.
@@ -789,7 +789,7 @@ §Examplesfor group in v.splitn(2, |num| *num % 3 == 0) {
println!("{group:?}");
}
-1.0.0 · Sourcepub fn rsplitn<F>(&self, n: usize, pred: F) -> RSplitN<'_, T, F>
Returns an iterator over subslices separated by elements that match
pred
limited to returning at most n
items. This starts at the end of
the slice and works backwards. The matched element is not contained in
@@ -805,7 +805,7 @@
§Examplesfor group in v.rsplitn(2, |num| *num % 3 == 0) {
println!("{group:?}");
}
-Sourcepub fn split_once<F>(&self, pred: F) -> Option<(&[T], &[T])>where
+
Sourcepub fn split_once<F>(&self, pred: F) -> Option<(&[T], &[T])>
🔬This is a nightly-only experimental API. (slice_split_once
)
Splits the slice on the first element that matches the specified
predicate.
If any matching elements are present in the slice, returns the prefix
@@ -819,7 +819,7 @@
§Examples&[3, 2, 4][..]
)));
assert_eq!(s.split_once(|&x| x == 0), None);
-Sourcepub fn rsplit_once<F>(&self, pred: F) -> Option<(&[T], &[T])>where
+
Sourcepub fn rsplit_once<F>(&self, pred: F) -> Option<(&[T], &[T])>
🔬This is a nightly-only experimental API. (slice_split_once
)
Splits the slice on the last element that matches the specified
predicate.
If any matching elements are present in the slice, returns the prefix
@@ -833,7 +833,7 @@
§Examples&[4][..]
)));
assert_eq!(s.rsplit_once(|&x| x == 0), None);
- 1.0.0 · Sourcepub fn contains(&self, x: &T) -> boolwhere
T: PartialEq,
Returns true
if the slice contains an element with the given value.
This operation is O(n).
Note that if you have a sorted slice, binary_search
may be faster.
@@ -848,7 +848,7 @@ §Exampleslet v = [String::from("hello"), String::from("world")]; // slice of `String`
assert!(v.iter().any(|e| e == "hello")); // search with `&str`
assert!(!v.iter().any(|e| e == "hi"));
-1.0.0 · Sourcepub fn starts_with(&self, needle: &[T]) -> boolwhere
+
1.0.0 · Sourcepub fn starts_with(&self, needle: &[T]) -> boolwhere
T: PartialEq,
1.51.0 · Sourcepub fn strip_prefix<P>(&self, prefix: &P) -> Option<&[T]>where
+
1.51.0 · Sourcepub fn strip_prefix<P>(&self, prefix: &P) -> Option<&[T]>
Returns a subslice with the prefix removed.
If the slice starts with prefix
, returns the subslice after the prefix, wrapped in Some
.
@@ -896,7 +896,7 @@
§Exampleslet prefix : &str = "he";
assert_eq!(b"hello".strip_prefix(prefix.as_bytes()),
Some(b"llo".as_ref()));
-1.51.0 · Sourcepub fn strip_suffix<P>(&self, suffix: &P) -> Option<&[T]>where
+
1.51.0 · Sourcepub fn strip_suffix<P>(&self, suffix: &P) -> Option<&[T]>
Returns a subslice with the suffix removed.
If the slice ends with suffix
, returns the subslice before the suffix, wrapped in Some
.
@@ -910,7 +910,7 @@
§Examplesassert_eq!(v.strip_suffix(&[10, 40, 30]), Some(&[][..]));
assert_eq!(v.strip_suffix(&[50]), None);
assert_eq!(v.strip_suffix(&[50, 30]), None);
-
1.0.0 · Sourcepub fn binary_search(&self, x: &T) -> Result<usize, usize>where
T: Ord,
Binary searches this slice for a given element.
If the slice is not sorted, the returned result is unspecified and
meaningless.
@@ -965,7 +965,7 @@ §Exampless.insert(idx, num);
assert_eq!(s, [0, 1, 1, 1, 1, 2, 3, 5, 8, 13, 21, 34, 42, 55]);
-1.0.0 · Sourcepub fn binary_search_by<'a, F>(&'a self, f: F) -> Result<usize, usize>where
+
1.0.0 · Sourcepub fn binary_search_by<'a, F>(&'a self, f: F) -> Result<usize, usize>
Binary searches this slice with a comparator function.
The comparator function should return an order code that indicates
whether its argument is Less
, Equal
or Greater
the desired
@@ -997,7 +997,7 @@
§Exampleslet seek = 1;
let r = s.binary_search_by(|probe| probe.cmp(&seek));
assert!(match r { Ok(1..=4) => true, _ => false, });
-1.10.0 · Sourcepub fn binary_search_by_key<'a, B, F>(
+
1.10.0 · Sourcepub fn binary_search_by_key<'a, B, F>(
&'a self,
b: &B,
f: F,
@@ -1031,7 +1031,7 @@ §Examplesassert_eq!(s.binary_search_by_key(&100, |&(a, b)| b), Err(13));
let r = s.binary_search_by_key(&1, |&(a, b)| b);
assert!(match r { Ok(1..=4) => true, _ => false, });
-1.30.0 · Sourcepub unsafe fn align_to<U>(&self) -> (&[T], &[U], &[T])
Transmutes the slice to a slice of another type, ensuring alignment of the types is
+
1.30.0 · Sourcepub unsafe fn align_to<U>(&self) -> (&[T], &[U], &[T])
Transmutes the slice to a slice of another type, ensuring alignment of the types is
maintained.
This method splits the slice into three distinct slices: prefix, correctly aligned middle
slice of a new type, and the suffix slice. The middle part will be as big as possible under
@@ -1051,7 +1051,7 @@
§Examples}
-Sourcepub fn as_simd<const LANES: usize>(&self) -> (&[T], &[Simd<T, LANES>], &[T])
🔬This is a nightly-only experimental API. (portable_simd
)
Splits a slice into a prefix, a middle of aligned SIMD types, and a suffix.
@@ -1092,7 +1092,7 @@ §Exampleslet numbers: Vec<f32> = (1..101).map(|x| x as _).collect();
assert_eq!(basic_simd_sum(&numbers[1..99]), 4949.0);
-
1.82.0 · Sourcepub fn is_sorted(&self) -> boolwhere
T: PartialOrd,
Checks if the elements of this slice are sorted.
That is, for each element a
and its following element b
, a <= b
must hold. If the
slice yields exactly zero or one element, true
is returned.
@@ -1107,7 +1107,7 @@ §Examplesassert!([0].is_sorted());
assert!(empty.is_sorted());
assert!(![0.0, 1.0, f32::NAN].is_sorted());
-
1.82.0 · Sourcepub fn is_sorted_by<'a, F>(&'a self, compare: F) -> boolwhere
+
1.82.0 · Sourcepub fn is_sorted_by<'a, F>(&'a self, compare: F) -> bool
Checks if the elements of this slice are sorted using the given comparator function.
Instead of using PartialOrd::partial_cmp
, this function uses the given compare
function to determine whether two elements are to be considered in sorted order.
@@ -1121,7 +1121,7 @@ §Exampleslet empty: [i32; 0] = [];
assert!(empty.is_sorted_by(|a, b| false));
assert!(empty.is_sorted_by(|a, b| true));
-
1.82.0 · Sourcepub fn is_sorted_by_key<'a, F, K>(&'a self, f: F) -> boolwhere
+
1.82.0 · Sourcepub fn is_sorted_by_key<'a, F, K>(&'a self, f: F) -> bool
Checks if the elements of this slice are sorted using the given key extraction function.
Instead of comparing the slice’s elements directly, this function compares the keys of the
@@ -1130,7 +1130,7 @@
§Examples§Examples
assert!(["c", "bb", "aaa"].is_sorted_by_key(|s| s.len()));
assert!(![-2i32, -1, 0, 3].is_sorted_by_key(|n| n.abs()));
-1.52.0 · Sourcepub fn partition_point<P>(&self, pred: P) -> usizewhere
+
1.52.0 · Sourcepub fn partition_point<P>(&self, pred: P) -> usize
Returns the index of the partition point according to the given predicate
(the index of the first element of the second partition).
The slice is assumed to be partitioned according to the given predicate.
@@ -1163,7 +1163,7 @@
§Exampleslet idx = s.partition_point(|&x| x <= num);
s.insert(idx, num);
assert_eq!(s, [0, 1, 1, 1, 1, 2, 3, 5, 8, 13, 21, 34, 42, 55]);
-
Sourcepub fn elem_offset(&self, element: &T) -> Option<usize>
🔬This is a nightly-only experimental API. (substr_range
)
Returns the index that an element reference points to.
+Sourcepub fn elem_offset(&self, element: &T) -> Option<usize>
🔬This is a nightly-only experimental API. (substr_range
)
Returns the index that an element reference points to.
Returns None
if element
does not point within the slice or if it points between elements.
This method is useful for extending slice iterators like slice::split
.
Note that this uses pointer arithmetic and does not compare elements.
@@ -1196,7 +1196,7 @@
§Examplesassert_eq!(arr.elem_offset(ok_elm), Some(0)); // Points to element 0
assert_eq!(arr.elem_offset(weird_elm), None); // Points between element 0 and 1
-Sourcepub fn subslice_range(&self, subslice: &[T]) -> Option<Range<usize>>
🔬This is a nightly-only experimental API. (substr_range
)
Returns the range of indices that a subslice points to.
+Sourcepub fn subslice_range(&self, subslice: &[T]) -> Option<Range<usize>>
🔬This is a nightly-only experimental API. (substr_range
)
Returns the range of indices that a subslice points to.
Returns None
if subslice
does not point within the slice or if it points between elements.
This method does not compare elements. Instead, this method finds the location in the slice that
subslice
was obtained from. To find the index of a subslice via comparison, instead use
@@ -1221,7 +1221,7 @@
§Examplesassert_eq!(iter.next(), Some(1..3));
assert_eq!(iter.next(), Some(4..4));
assert_eq!(iter.next(), Some(5..6));
-1.80.0 · Sourcepub fn as_flattened(&self) -> &[T]
Takes a &[[T; N]]
, and flattens it to a &[T]
.
+1.80.0 · Sourcepub fn as_flattened(&self) -> &[T]
Takes a &[[T; N]]
, and flattens it to a &[T]
.
§Panics
This panics if the length of the resulting slice would overflow a usize
.
This is only possible when flattening a slice of arrays of zero-sized
diff --git a/iced/advanced/image/struct.Id.html b/iced/advanced/image/struct.Id.html
index dd39b1f924..37844bc571 100644
--- a/iced/advanced/image/struct.Id.html
+++ b/iced/advanced/image/struct.Id.html
@@ -1,4 +1,4 @@
-
Id in iced::advanced::image - Rust pub struct Id(/* private fields */);
Available on crate feature advanced
only.Expand description
The unique identifier of some Handle
data.
+Id in iced::advanced::image - Rust pub struct Id(/* private fields */);
Available on crate feature advanced
only.Expand description
The unique identifier of some Handle
data.
Trait Implementations§
Source§impl Hash for Id
1.3.0 · Source§fn hash_slice<H>(data: &[Self], state: &mut H)where
H: Hasher,
diff --git a/iced/advanced/image/struct.Image.html b/iced/advanced/image/struct.Image.html
index 9763f2b917..b85e531bd7 100644
--- a/iced/advanced/image/struct.Image.html
+++ b/iced/advanced/image/struct.Image.html
@@ -1,4 +1,4 @@
-Image in iced::advanced::image - Rust pub struct Image<H = Handle> {
+Image in iced::advanced::image - Rust pub struct Image<H = Handle> {
pub handle: H,
pub filter_method: FilterMethod,
pub rotation: Radians,
diff --git a/iced/advanced/image/trait.Renderer.html b/iced/advanced/image/trait.Renderer.html
index 99a7707757..9e7a0c7360 100644
--- a/iced/advanced/image/trait.Renderer.html
+++ b/iced/advanced/image/trait.Renderer.html
@@ -1,4 +1,4 @@
-Renderer in iced::advanced::image - Rust pub trait Renderer: Renderer {
+Renderer in iced::advanced::image - Rust pub trait Renderer: Renderer {
type Handle: Clone;
// Required methods
diff --git a/iced/advanced/index.html b/iced/advanced/index.html
index cbccc7d16b..2754572152 100644
--- a/iced/advanced/index.html
+++ b/iced/advanced/index.html
@@ -1,3 +1,3 @@
-iced::advanced - Rust Available on crate feature advanced
only.Expand description
Leverage advanced concepts like custom widgets.
+iced::advanced - Rust Available on crate feature advanced
only.Expand description
Leverage advanced concepts like custom widgets.
Re-exports§
pub use crate::renderer::graphics;
Modules§
- Access the clipboard.
- Load and draw raster graphics.
- Position your widgets properly.
- Handle mouse events.
- Display interactive elements on top of other widgets.
- Write your own renderer.
- Write your own subscriptions.
- Load and draw vector graphics.
- Draw and interact with text.
- Create custom widgets and operate on them.
Structs§
- The bounds of a
Node
and its children, using absolute coordinates. - A connection to the state of a shell.
- A paragraph.
Traits§
- A buffer for short-term storage and transfer within and between
applications.
- An interactive component that can be displayed on top of other widgets.
- A component that can be used by widgets to draw themselves on a screen.
- A component that displays information and allows interaction.
\ No newline at end of file
diff --git a/iced/advanced/layout/flex/enum.Axis.html b/iced/advanced/layout/flex/enum.Axis.html
index 1b89010387..10cc75d31f 100644
--- a/iced/advanced/layout/flex/enum.Axis.html
+++ b/iced/advanced/layout/flex/enum.Axis.html
@@ -1,4 +1,4 @@
-Axis in iced::advanced::layout::flex - Rust pub enum Axis {
+Axis in iced::advanced::layout::flex - Rust pub enum Axis {
Horizontal,
Vertical,
}
Available on crate feature advanced
only.Expand description
The main axis of a flex layout.
diff --git a/iced/advanced/layout/flex/fn.resolve.html b/iced/advanced/layout/flex/fn.resolve.html
index a12314538d..21cf27d18b 100644
--- a/iced/advanced/layout/flex/fn.resolve.html
+++ b/iced/advanced/layout/flex/fn.resolve.html
@@ -1,4 +1,4 @@
-resolve in iced::advanced::layout::flex - Rust pub fn resolve<Message, Theme, Renderer>(
+resolve in iced::advanced::layout::flex - Rust pub fn resolve<Message, Theme, Renderer>(
axis: Axis,
renderer: &Renderer,
limits: &Limits,
diff --git a/iced/advanced/layout/flex/index.html b/iced/advanced/layout/flex/index.html
index aee37deaa4..0cc1213e58 100644
--- a/iced/advanced/layout/flex/index.html
+++ b/iced/advanced/layout/flex/index.html
@@ -1,3 +1,3 @@
-iced::advanced::layout::flex - Rust Available on crate feature advanced
only.Expand description
Distribute elements using a flex-based layout.
+iced::advanced::layout::flex - Rust
\ No newline at end of file
diff --git a/iced/advanced/layout/fn.atomic.html b/iced/advanced/layout/fn.atomic.html
index f8b19b63ad..79a953142e 100644
--- a/iced/advanced/layout/fn.atomic.html
+++ b/iced/advanced/layout/fn.atomic.html
@@ -1,4 +1,4 @@
-atomic in iced::advanced::layout - Rust pub fn atomic(
+atomic in iced::advanced::layout - Rust pub fn atomic(
limits: &Limits,
width: impl Into<Length>,
height: impl Into<Length>,
diff --git a/iced/advanced/layout/fn.contained.html b/iced/advanced/layout/fn.contained.html
index 03009b6f17..878f8f09c8 100644
--- a/iced/advanced/layout/fn.contained.html
+++ b/iced/advanced/layout/fn.contained.html
@@ -1,4 +1,4 @@
-contained in iced::advanced::layout - Rust pub fn contained(
+contained in iced::advanced::layout - Rust pub fn contained(
limits: &Limits,
width: impl Into<Length>,
height: impl Into<Length>,
diff --git a/iced/advanced/layout/fn.next_to_each_other.html b/iced/advanced/layout/fn.next_to_each_other.html
index 5787e32993..67824945c7 100644
--- a/iced/advanced/layout/fn.next_to_each_other.html
+++ b/iced/advanced/layout/fn.next_to_each_other.html
@@ -1,4 +1,4 @@
-next_to_each_other in iced::advanced::layout - Rust pub fn next_to_each_other(
+next_to_each_other in iced::advanced::layout - Rust pub fn next_to_each_other(
limits: &Limits,
spacing: f32,
left: impl FnOnce(&Limits) -> Node,
diff --git a/iced/advanced/layout/fn.padded.html b/iced/advanced/layout/fn.padded.html
index 5176ee90e0..4ff6bab22e 100644
--- a/iced/advanced/layout/fn.padded.html
+++ b/iced/advanced/layout/fn.padded.html
@@ -1,4 +1,4 @@
-padded in iced::advanced::layout - Rust pub fn padded(
+padded in iced::advanced::layout - Rust pub fn padded(
limits: &Limits,
width: impl Into<Length>,
height: impl Into<Length>,
diff --git a/iced/advanced/layout/fn.positioned.html b/iced/advanced/layout/fn.positioned.html
index c7e5f45216..db7d63bd4d 100644
--- a/iced/advanced/layout/fn.positioned.html
+++ b/iced/advanced/layout/fn.positioned.html
@@ -1,4 +1,4 @@
-positioned in iced::advanced::layout - Rust pub fn positioned(
+positioned in iced::advanced::layout - Rust pub fn positioned(
limits: &Limits,
width: impl Into<Length>,
height: impl Into<Length>,
diff --git a/iced/advanced/layout/fn.sized.html b/iced/advanced/layout/fn.sized.html
index 3a4b61dd21..37d8824ad1 100644
--- a/iced/advanced/layout/fn.sized.html
+++ b/iced/advanced/layout/fn.sized.html
@@ -1,4 +1,4 @@
-sized in iced::advanced::layout - Rust pub fn sized(
+sized in iced::advanced::layout - Rust pub fn sized(
limits: &Limits,
width: impl Into<Length>,
height: impl Into<Length>,
diff --git a/iced/advanced/layout/index.html b/iced/advanced/layout/index.html
index 950b04f5b1..530848c1b0 100644
--- a/iced/advanced/layout/index.html
+++ b/iced/advanced/layout/index.html
@@ -1,4 +1,4 @@
-iced::advanced::layout - Rust Available on crate feature advanced
only.Expand description
Position your widgets properly.
+iced::advanced::layout - Rust Available on crate feature advanced
only.Expand description
Position your widgets properly.
Modules§
- Distribute elements using a flex-based layout.
Structs§
- The bounds of a
Node
and its children, using absolute coordinates. - A set of size constraints for layouting.
- The bounds of an element and its children.
Functions§
- Computes the resulting
Node
that fits the Limits
given
some width and height requirements and a closure that produces
diff --git a/iced/advanced/layout/struct.Layout.html b/iced/advanced/layout/struct.Layout.html
index 86e693ce7e..f9d3fae26d 100644
--- a/iced/advanced/layout/struct.Layout.html
+++ b/iced/advanced/layout/struct.Layout.html
@@ -1,4 +1,4 @@
-Layout in iced::advanced::layout - Rust pub struct Layout<'a> { /* private fields */ }
Available on crate feature advanced
only.Expand description
The bounds of a Node
and its children, using absolute coordinates.
+Layout in iced::advanced::layout - Rust pub struct Layout<'a> { /* private fields */ }
Available on crate feature advanced
only.Expand description
The bounds of a Node
and its children, using absolute coordinates.
Implementations§
Source§impl<'a> Layout<'a>
Sourcepub fn with_offset(offset: Vector, node: &'a Node) -> Layout<'a>
Creates a new Layout
for the given Node
with the provided offset
from the origin.
diff --git a/iced/advanced/layout/struct.Limits.html b/iced/advanced/layout/struct.Limits.html
index 1ccab44908..28b95c6bf8 100644
--- a/iced/advanced/layout/struct.Limits.html
+++ b/iced/advanced/layout/struct.Limits.html
@@ -1,4 +1,4 @@
-Limits in iced::advanced::layout - Rust pub struct Limits { /* private fields */ }
Available on crate feature advanced
only.Expand description
A set of size constraints for layouting.
+Limits in iced::advanced::layout - Rust pub struct Limits { /* private fields */ }
Available on crate feature advanced
only.Expand description
A set of size constraints for layouting.
Implementations§
Source§impl Limits
Sourcepub fn min(&self) -> Size
Returns the minimum Size
of the Limits
.
diff --git a/iced/advanced/layout/struct.Node.html b/iced/advanced/layout/struct.Node.html
index 3df128bd3f..73d48f4abb 100644
--- a/iced/advanced/layout/struct.Node.html
+++ b/iced/advanced/layout/struct.Node.html
@@ -1,4 +1,4 @@
-Node in iced::advanced::layout - Rust pub struct Node { /* private fields */ }
Available on crate feature advanced
only.Expand description
The bounds of an element and its children.
+Node in iced::advanced::layout - Rust pub struct Node { /* private fields */ }
Available on crate feature advanced
only.Expand description
The bounds of an element and its children.
Implementations§
Source§impl Node
Sourcepub fn container(child: Node, padding: Padding) -> Node
Creates a new Node
that wraps a single child with some Padding
.
diff --git a/iced/advanced/mouse/click/enum.Kind.html b/iced/advanced/mouse/click/enum.Kind.html
index 9f6816dc35..aad79572c6 100644
--- a/iced/advanced/mouse/click/enum.Kind.html
+++ b/iced/advanced/mouse/click/enum.Kind.html
@@ -1,4 +1,4 @@
-Kind in iced::advanced::mouse::click - Rust