#[non_exhaustive]pub enum FnAccess {
Private,
Public,
}
Expand description
A type representing the access mode of a function.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for FnAccess
impl<'de> Deserialize<'de> for FnAccess
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Ord for FnAccess
impl Ord for FnAccess
source§impl PartialEq<FnAccess> for FnAccess
impl PartialEq<FnAccess> for FnAccess
source§impl PartialOrd<FnAccess> for FnAccess
impl PartialOrd<FnAccess> for FnAccess
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for FnAccess
impl Eq for FnAccess
impl StructuralEq for FnAccess
impl StructuralPartialEq for FnAccess
Auto Trait Implementations§
impl RefUnwindSafe for FnAccess
impl Send for FnAccess
impl Sync for FnAccess
impl Unpin for FnAccess
impl UnwindSafe for FnAccess
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
source§impl<T> Variant for Twhere
T: Any + Clone + SendSync,
impl<T> Variant for Twhere T: Any + Clone + SendSync,
source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert this
Variant
trait object to &mut dyn Any
.source§fn as_boxed_any(self: Box<T, Global>) -> Box<dyn Any, Global>
fn as_boxed_any(self: Box<T, Global>) -> Box<dyn Any, Global>
Convert this
Variant
trait object to Box<dyn Any>
.