Fix no_function feature.

This commit is contained in:
Stephen Chung
2022-02-26 17:41:27 +08:00
parent 9ef522b699
commit e767731953
3 changed files with 11 additions and 11 deletions

View File

@@ -4,6 +4,15 @@ use bitflags::bitflags;
#[cfg(feature = "no_std")]
use std::prelude::v1::*;
/// A type representing the access mode of a function.
#[derive(Debug, Clone, Copy, Eq, PartialEq, Ord, PartialOrd, Hash)]
pub enum FnAccess {
/// Private function.
Private,
/// Public function.
Public,
}
bitflags! {
/// _(internals)_ A type that holds a configuration option with bit-flags.
/// Exported under the `internals` feature only.