diff options
author | Nell Shamrell-Harrington <nells@linux.microsoft.com> | 2024-09-18 21:20:52 +0000 |
---|---|---|
committer | Miguel Ojeda <ojeda@kernel.org> | 2024-10-07 10:49:15 +0200 |
commit | d407317076ce1ce5ec0882f08d619c0dd79a5fbf (patch) | |
tree | 07b7b4481c087352250538dc451796ad4dab3346 /rust/kernel/alloc/allocator.rs | |
parent | 38f022b0787b22feb9e34fce19a1f6cea1f951ed (diff) |
rust: types: add examples for the `Either` type
We aim to have examples in all Rust types, thus add basic ones for the
`Either` type.
Suggested-by: Miguel Ojeda <ojeda@kernel.org>
Signed-off-by: Nell Shamrell-Harrington <nells@linux.microsoft.com>
Tested-by: Dirk Behme <dirk.behme@de.bosch.com>
Reviewed-by: Trevor Gross <tmgross@umich.edu>
Reviewed-by: Alice Ryhl <aliceryhl@google.com>
Link: https://rust-for-linux.zulipchat.com/#narrow/stream/291565/topic/x/near/467478085
Link: https://lore.kernel.org/r/20240918212052.8790-1-nells@linux.microsoft.com
[ Reworded slightly. - Miguel ]
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
Diffstat (limited to 'rust/kernel/alloc/allocator.rs')
0 files changed, 0 insertions, 0 deletions