Implement Ord and PartialOrd.
This commit is contained in:
parent
f091033f78
commit
5931f43d4d
@ -5,12 +5,12 @@ use std::ops::{Add, AddAssign, BitAnd, BitAndAssign, BitOr, BitOrAssign, Not, Su
|
|||||||
use std::prelude::v1::*;
|
use std::prelude::v1::*;
|
||||||
|
|
||||||
/// A type representing the access mode of a function.
|
/// A type representing the access mode of a function.
|
||||||
#[derive(Debug, Clone, Copy, Eq, PartialEq, Hash)]
|
#[derive(Debug, Clone, Copy, Eq, PartialEq, Ord, PartialOrd, Hash)]
|
||||||
pub enum FnAccess {
|
pub enum FnAccess {
|
||||||
/// Public function.
|
|
||||||
Public,
|
|
||||||
/// Private function.
|
/// Private function.
|
||||||
Private,
|
Private,
|
||||||
|
/// Public function.
|
||||||
|
Public,
|
||||||
}
|
}
|
||||||
|
|
||||||
/// _(internals)_ A type that holds a configuration option with bit-flags.
|
/// _(internals)_ A type that holds a configuration option with bit-flags.
|
||||||
|
@ -22,14 +22,14 @@ use std::{
|
|||||||
};
|
};
|
||||||
|
|
||||||
/// A type representing the namespace of a function.
|
/// A type representing the namespace of a function.
|
||||||
#[derive(Debug, Clone, Copy, Eq, PartialEq, Hash)]
|
#[derive(Debug, Clone, Copy, Eq, PartialEq, Ord, PartialOrd, Hash)]
|
||||||
pub enum FnNamespace {
|
pub enum FnNamespace {
|
||||||
/// Expose to global namespace.
|
|
||||||
Global,
|
|
||||||
/// Module namespace only.
|
/// Module namespace only.
|
||||||
///
|
///
|
||||||
/// Ignored under `no_module`.
|
/// Ignored under `no_module`.
|
||||||
Internal,
|
Internal,
|
||||||
|
/// Expose to global namespace.
|
||||||
|
Global,
|
||||||
}
|
}
|
||||||
|
|
||||||
/// A type containing all metadata for a registered function.
|
/// A type containing all metadata for a registered function.
|
||||||
|
Loading…
Reference in New Issue
Block a user