Struct casbin::function_map::FunctionMap
source · pub struct FunctionMap { /* private fields */ }
Implementations§
source§impl FunctionMap
impl FunctionMap
pub fn add_function( &mut self, fname: &str, f: fn(_: ImmutableString, _: ImmutableString) -> bool )
pub fn get_functions( &self ) -> impl Iterator<Item = (&String, &fn(_: ImmutableString, _: ImmutableString) -> bool)>
Trait Implementations§
source§impl Default for FunctionMap
impl Default for FunctionMap
source§fn default() -> FunctionMap
fn default() -> FunctionMap
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for FunctionMap
impl Send for FunctionMap
impl Sync for FunctionMap
impl Unpin for FunctionMap
impl UnwindSafe for FunctionMap
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