pub enum Constness {
Const,
Mut,
}
Variants§
Implementations§
Source§impl Constness
impl Constness
pub fn from_is_const(is_const: bool) -> Self
pub fn from_is_mut(is_mut: bool) -> Self
pub fn is_const(self) -> bool
pub fn is_mut(self) -> bool
Sourcepub fn rust_qual(self) -> &'static str
pub fn rust_qual(self) -> &'static str
Returns ""
or "mut "
, for usage with Rust references, e.g. &mut T
Sourcepub fn rust_name_qual(self) -> &'static str
pub fn rust_name_qual(self) -> &'static str
Returns ""
or "Mut"
, for usage within Rust names, e.g. BoxRefMut
Sourcepub fn rust_function_name_qual(self) -> &'static str
pub fn rust_function_name_qual(self) -> &'static str
Returns ""
or "_mut"
, for usage within Rust function names, e.g. as_raw_mut
Sourcepub fn rust_qual_ptr(self) -> &'static str
pub fn rust_qual_ptr(self) -> &'static str
Returns "const "
or "mut "
, for usage with Rust pointers, e.g. *const T
pub fn rust_null_ptr(self) -> &'static str
Trait Implementations§
Source§impl Ord for Constness
impl Ord for Constness
Source§impl PartialOrd for Constness
impl PartialOrd for Constness
impl Copy for Constness
impl Eq for Constness
impl StructuralPartialEq for Constness
Auto Trait Implementations§
impl Freeze for Constness
impl RefUnwindSafe for Constness
impl Send for Constness
impl Sync for Constness
impl Unpin for Constness
impl UnwindSafe for Constness
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