mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-08 21:06:48 +00:00
Add description and license for align-ext
This commit is contained in:
parent
e192579405
commit
a93f922a25
@ -2,5 +2,7 @@
|
||||
name = "align_ext"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
description = " An extension trait for Rust integer types to make integers aligned to a power of two"
|
||||
license = "MPL-2.0"
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
@ -6,7 +6,7 @@
|
||||
/// `u64`, and `usize`, to provide methods to make integers aligned to a
|
||||
/// power of two.
|
||||
pub trait AlignExt {
|
||||
/// returns whether the number is a power of two
|
||||
/// Returns whether the number is a power of two
|
||||
fn is_power_of_two(&self) -> bool;
|
||||
|
||||
/// Returns to the smallest number that is greater than or equal to
|
||||
|
@ -3,3 +3,4 @@
|
||||
[toolchain]
|
||||
channel = "nightly-2024-01-01"
|
||||
components = ["rust-src", "rustc-dev", "llvm-tools-preview"]
|
||||
targets = ["x86_64-unknown-none"]
|
Loading…
x
Reference in New Issue
Block a user