diff --git a/src/ast/flags.rs b/src/ast/flags.rs index 1e0fdc63..84190288 100644 --- a/src/ast/flags.rs +++ b/src/ast/flags.rs @@ -5,12 +5,12 @@ use std::ops::{Add, AddAssign, BitAnd, BitAndAssign, BitOr, BitOrAssign, Not, Su use std::prelude::v1::*; /// 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 { - /// Public function. - Public, /// Private function. Private, + /// Public function. + Public, } /// _(internals)_ A type that holds a configuration option with bit-flags. diff --git a/src/module/mod.rs b/src/module/mod.rs index 71768911..1d277d64 100644 --- a/src/module/mod.rs +++ b/src/module/mod.rs @@ -22,14 +22,14 @@ use std::{ }; /// 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 { - /// Expose to global namespace. - Global, /// Module namespace only. /// /// Ignored under `no_module`. Internal, + /// Expose to global namespace. + Global, } /// A type containing all metadata for a registered function.