pub struct CInt<T>(pub T);Expand description
An integer in C syntax, as linkers and assemblers read one: 0x/0X hex,
a leading 0 for octal, otherwise decimal, with a sign for signed types.
--image-base=0x400000, -z max-page-size=0x1000, -Ttext=010000.
Tuple Fields§
§0: TTrait Implementations§
impl<T: Copy> Copy for CInt<T>
impl<T: Eq> Eq for CInt<T>
Source§impl FromArg for CInt<u8>
impl FromArg for CInt<u8>
Source§const CHOICES: &'static [&'static str] = _
const CHOICES: &'static [&'static str] = _
The values accepted, when there is a fixed set: help lists them as
[possible values: …]. Empty by default; #[derive(ValueEnum)] fills
it with each visible variant’s name.Source§const HINT: Hint = crate::complete::Hint::Nothing
const HINT: Hint = crate::complete::Hint::Nothing
What the value is, for the shell that completes it, when a field
states no
hint. Nothing a shell knows by default: a number, an
address, a type of the program. A PathBuf, a String and an
OsString are a file: a word is one more often than not, and a shell
that offers files stops no other word from being typed.Source§impl FromArg for CInt<u16>
impl FromArg for CInt<u16>
Source§const CHOICES: &'static [&'static str] = _
const CHOICES: &'static [&'static str] = _
The values accepted, when there is a fixed set: help lists them as
[possible values: …]. Empty by default; #[derive(ValueEnum)] fills
it with each visible variant’s name.Source§const HINT: Hint = crate::complete::Hint::Nothing
const HINT: Hint = crate::complete::Hint::Nothing
What the value is, for the shell that completes it, when a field
states no
hint. Nothing a shell knows by default: a number, an
address, a type of the program. A PathBuf, a String and an
OsString are a file: a word is one more often than not, and a shell
that offers files stops no other word from being typed.Source§impl FromArg for CInt<u32>
impl FromArg for CInt<u32>
Source§const CHOICES: &'static [&'static str] = _
const CHOICES: &'static [&'static str] = _
The values accepted, when there is a fixed set: help lists them as
[possible values: …]. Empty by default; #[derive(ValueEnum)] fills
it with each visible variant’s name.Source§const HINT: Hint = crate::complete::Hint::Nothing
const HINT: Hint = crate::complete::Hint::Nothing
What the value is, for the shell that completes it, when a field
states no
hint. Nothing a shell knows by default: a number, an
address, a type of the program. A PathBuf, a String and an
OsString are a file: a word is one more often than not, and a shell
that offers files stops no other word from being typed.Source§impl FromArg for CInt<u64>
impl FromArg for CInt<u64>
Source§const CHOICES: &'static [&'static str] = _
const CHOICES: &'static [&'static str] = _
The values accepted, when there is a fixed set: help lists them as
[possible values: …]. Empty by default; #[derive(ValueEnum)] fills
it with each visible variant’s name.Source§const HINT: Hint = crate::complete::Hint::Nothing
const HINT: Hint = crate::complete::Hint::Nothing
What the value is, for the shell that completes it, when a field
states no
hint. Nothing a shell knows by default: a number, an
address, a type of the program. A PathBuf, a String and an
OsString are a file: a word is one more often than not, and a shell
that offers files stops no other word from being typed.Source§impl FromArg for CInt<usize>
impl FromArg for CInt<usize>
Source§const CHOICES: &'static [&'static str] = _
const CHOICES: &'static [&'static str] = _
The values accepted, when there is a fixed set: help lists them as
[possible values: …]. Empty by default; #[derive(ValueEnum)] fills
it with each visible variant’s name.Source§const HINT: Hint = crate::complete::Hint::Nothing
const HINT: Hint = crate::complete::Hint::Nothing
What the value is, for the shell that completes it, when a field
states no
hint. Nothing a shell knows by default: a number, an
address, a type of the program. A PathBuf, a String and an
OsString are a file: a word is one more often than not, and a shell
that offers files stops no other word from being typed.Source§impl FromArg for CInt<i8>
impl FromArg for CInt<i8>
Source§const CHOICES: &'static [&'static str] = _
const CHOICES: &'static [&'static str] = _
The values accepted, when there is a fixed set: help lists them as
[possible values: …]. Empty by default; #[derive(ValueEnum)] fills
it with each visible variant’s name.Source§const HINT: Hint = crate::complete::Hint::Nothing
const HINT: Hint = crate::complete::Hint::Nothing
What the value is, for the shell that completes it, when a field
states no
hint. Nothing a shell knows by default: a number, an
address, a type of the program. A PathBuf, a String and an
OsString are a file: a word is one more often than not, and a shell
that offers files stops no other word from being typed.Source§impl FromArg for CInt<i16>
impl FromArg for CInt<i16>
Source§const CHOICES: &'static [&'static str] = _
const CHOICES: &'static [&'static str] = _
The values accepted, when there is a fixed set: help lists them as
[possible values: …]. Empty by default; #[derive(ValueEnum)] fills
it with each visible variant’s name.Source§const HINT: Hint = crate::complete::Hint::Nothing
const HINT: Hint = crate::complete::Hint::Nothing
What the value is, for the shell that completes it, when a field
states no
hint. Nothing a shell knows by default: a number, an
address, a type of the program. A PathBuf, a String and an
OsString are a file: a word is one more often than not, and a shell
that offers files stops no other word from being typed.Source§impl FromArg for CInt<i32>
impl FromArg for CInt<i32>
Source§const CHOICES: &'static [&'static str] = _
const CHOICES: &'static [&'static str] = _
The values accepted, when there is a fixed set: help lists them as
[possible values: …]. Empty by default; #[derive(ValueEnum)] fills
it with each visible variant’s name.Source§const HINT: Hint = crate::complete::Hint::Nothing
const HINT: Hint = crate::complete::Hint::Nothing
What the value is, for the shell that completes it, when a field
states no
hint. Nothing a shell knows by default: a number, an
address, a type of the program. A PathBuf, a String and an
OsString are a file: a word is one more often than not, and a shell
that offers files stops no other word from being typed.Source§impl FromArg for CInt<i64>
impl FromArg for CInt<i64>
Source§const CHOICES: &'static [&'static str] = _
const CHOICES: &'static [&'static str] = _
The values accepted, when there is a fixed set: help lists them as
[possible values: …]. Empty by default; #[derive(ValueEnum)] fills
it with each visible variant’s name.Source§const HINT: Hint = crate::complete::Hint::Nothing
const HINT: Hint = crate::complete::Hint::Nothing
What the value is, for the shell that completes it, when a field
states no
hint. Nothing a shell knows by default: a number, an
address, a type of the program. A PathBuf, a String and an
OsString are a file: a word is one more often than not, and a shell
that offers files stops no other word from being typed.Source§impl FromArg for CInt<isize>
impl FromArg for CInt<isize>
Source§const CHOICES: &'static [&'static str] = _
const CHOICES: &'static [&'static str] = _
The values accepted, when there is a fixed set: help lists them as
[possible values: …]. Empty by default; #[derive(ValueEnum)] fills
it with each visible variant’s name.Source§const HINT: Hint = crate::complete::Hint::Nothing
const HINT: Hint = crate::complete::Hint::Nothing
What the value is, for the shell that completes it, when a field
states no
hint. Nothing a shell knows by default: a number, an
address, a type of the program. A PathBuf, a String and an
OsString are a file: a word is one more often than not, and a shell
that offers files stops no other word from being typed.Source§impl<T: Ord> Ord for CInt<T>
impl<T: Ord> Ord for CInt<T>
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl<T: PartialOrd> PartialOrd for CInt<T>
impl<T: PartialOrd> PartialOrd for CInt<T>
impl<T: PartialEq> StructuralPartialEq for CInt<T>
Auto Trait Implementations§
impl<T> Freeze for CInt<T>where
T: Freeze,
impl<T> RefUnwindSafe for CInt<T>where
T: RefUnwindSafe,
impl<T> Send for CInt<T>where
T: Send,
impl<T> Sync for CInt<T>where
T: Sync,
impl<T> Unpin for CInt<T>where
T: Unpin,
impl<T> UnsafeUnpin for CInt<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for CInt<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more