pub struct MyBigToken { /* private fields */ }
Expand description
The magic token to get MY_BIG_STATIC
working.
Implementations§
Source§impl MyBigToken
impl MyBigToken
Sourcepub fn static_ref(_this: Self) -> &'static i32
pub fn static_ref(_this: Self) -> &'static i32
This is same as the deref but provides a 'static
reference.
This is an associated function and not a method in order to not collide with a method of the same name.
Trait Implementations§
Source§impl Clone for MyBigToken
impl Clone for MyBigToken
Source§fn clone(&self) -> MyBigToken
fn clone(&self) -> MyBigToken
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for MyBigToken
impl Debug for MyBigToken
Source§impl Deref for MyBigToken
impl Deref for MyBigToken
Source§impl Hash for MyBigToken
impl Hash for MyBigToken
Source§impl Ord for MyBigToken
impl Ord for MyBigToken
Source§fn cmp(&self, other: &MyBigToken) -> Ordering
fn cmp(&self, other: &MyBigToken) -> Ordering
1.21.0 · 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
Source§impl PartialEq for MyBigToken
impl PartialEq for MyBigToken
Source§impl PartialOrd for MyBigToken
impl PartialOrd for MyBigToken
impl Copy for MyBigToken
impl Eq for MyBigToken
impl StructuralPartialEq for MyBigToken
Auto Trait Implementations§
impl Freeze for MyBigToken
impl RefUnwindSafe for MyBigToken
impl Send for MyBigToken
impl Sync for MyBigToken
impl Unpin for MyBigToken
impl UnwindSafe for MyBigToken
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