diff --git a/casbin/all.html b/casbin/all.html index c60e9252..2863a133 100644 --- a/casbin/all.html +++ b/casbin/all.html @@ -1 +1 @@ -List of all items in this crate

List of all items

Structs

Enums

Unions

Traits

Macros

Attribute Macros

Derive Macros

Functions

Type Aliases

Constants

\ No newline at end of file +List of all items in this crate

List of all items

Structs

Enums

Unions

Traits

Macros

Attribute Macros

Derive Macros

Functions

Type Aliases

Constants

\ No newline at end of file diff --git a/casbin/enum.EffectKind.html b/casbin/enum.EffectKind.html index 464ff689..d64dcd90 100644 --- a/casbin/enum.EffectKind.html +++ b/casbin/enum.EffectKind.html @@ -1,4 +1,4 @@ -EffectKind in casbin - Rust

Enum casbin::EffectKind

source ·
pub enum EffectKind {
+EffectKind in casbin - Rust

Enum casbin::EffectKind

source ·
pub enum EffectKind {
     Allow = 0,
     Indeterminate = 1,
     Deny = 2,
diff --git a/casbin/enum.Event.html b/casbin/enum.Event.html
index 96606d0d..80a8a8f5 100644
--- a/casbin/enum.Event.html
+++ b/casbin/enum.Event.html
@@ -1,4 +1,4 @@
-Event in casbin - Rust

Enum casbin::Event

source ·
pub enum Event {
+Event in casbin - Rust

Enum casbin::Event

source ·
pub enum Event {
     PolicyChange,
     ClearCache,
 }

Variants§

§

PolicyChange

§

ClearCache

Trait Implementations§

source§

impl EventEmitter<Event> for Enforcer

source§

fn on(&mut self, e: Event, f: fn(_: &mut Self, _: EventData))

source§

fn off(&mut self, e: Event)

source§

fn emit(&mut self, e: Event, d: EventData)

source§

impl Hash for Event

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where diff --git a/casbin/enum.EventData.html b/casbin/enum.EventData.html index e224c0be..dee96a96 100644 --- a/casbin/enum.EventData.html +++ b/casbin/enum.EventData.html @@ -1,4 +1,4 @@ -EventData in casbin - Rust

Enum casbin::EventData

source ·
pub enum EventData {
+EventData in casbin - Rust

Enum casbin::EventData

source ·
pub enum EventData {
     AddPolicy(String, String, Vec<String>),
     AddPolicies(String, String, Vec<Vec<String>>),
     RemovePolicy(String, String, Vec<String>),
diff --git a/casbin/error/enum.Error.html b/casbin/error/enum.Error.html
index fed093a9..573c8b76 100644
--- a/casbin/error/enum.Error.html
+++ b/casbin/error/enum.Error.html
@@ -1,4 +1,4 @@
-Error in casbin::error - Rust

Enum casbin::error::Error

source ·
pub enum Error {
+Error in casbin::error - Rust

Enum casbin::error::Error

source ·
pub enum Error {
     IoError(Error),
     ModelError(ModelError),
     PolicyError(PolicyError),
@@ -8,7 +8,7 @@
     RequestError(RequestError),
     AdapterError(AdapterError),
 }
Expand description

General casbin error

-

Variants§

§

IoError(Error)

§

ModelError(ModelError)

§

PolicyError(PolicyError)

§

RbacError(RbacError)

§

RhaiError(Box<EvalAltResult>)

§

RhaiParseError(ParseError)

§

RequestError(RequestError)

§

AdapterError(AdapterError)

Trait Implementations§

source§

impl Debug for Error

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for Error

source§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Error for Error

source§

fn source(&self) -> Option<&(dyn Error + 'static)>

The lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more
source§

impl From<AdapterError> for Error

source§

fn from(source: AdapterError) -> Self

Converts to this type from the input type.
source§

impl From<Box<EvalAltResult>> for Error

source§

fn from(source: Box<EvalAltResult>) -> Self

Converts to this type from the input type.
source§

impl From<Error> for Error

source§

fn from(source: IoError) -> Self

Converts to this type from the input type.
source§

impl From<ModelError> for Error

source§

fn from(source: ModelError) -> Self

Converts to this type from the input type.
source§

impl From<ParseError> for Error

source§

fn from(source: ParseError) -> Self

Converts to this type from the input type.
source§

impl From<PolicyError> for Error

source§

fn from(source: PolicyError) -> Self

Converts to this type from the input type.
source§

impl From<RbacError> for Error

source§

fn from(source: RbacError) -> Self

Converts to this type from the input type.
source§

impl From<RequestError> for Error

source§

fn from(source: RequestError) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

§

impl Freeze for Error

§

impl !RefUnwindSafe for Error

§

impl Send for Error

§

impl Sync for Error

§

impl Unpin for Error

§

impl !UnwindSafe for Error

Blanket Implementations§

source§

impl<T> Any for T
where +

Variants§

§

IoError(Error)

§

ModelError(ModelError)

§

PolicyError(PolicyError)

§

RbacError(RbacError)

§

RhaiError(Box<EvalAltResult>)

§

RhaiParseError(ParseError)

§

RequestError(RequestError)

§

AdapterError(AdapterError)

Trait Implementations§

source§

impl Debug for Error

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for Error

source§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Error for Error

source§

fn source(&self) -> Option<&(dyn Error + 'static)>

The lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more
source§

impl From<AdapterError> for Error

source§

fn from(source: AdapterError) -> Self

Converts to this type from the input type.
source§

impl From<Box<EvalAltResult>> for Error

source§

fn from(source: Box<EvalAltResult>) -> Self

Converts to this type from the input type.
source§

impl From<Error> for Error

source§

fn from(source: IoError) -> Self

Converts to this type from the input type.
source§

impl From<ModelError> for Error

source§

fn from(source: ModelError) -> Self

Converts to this type from the input type.
source§

impl From<ParseError> for Error

source§

fn from(source: ParseError) -> Self

Converts to this type from the input type.
source§

impl From<PolicyError> for Error

source§

fn from(source: PolicyError) -> Self

Converts to this type from the input type.
source§

impl From<RbacError> for Error

source§

fn from(source: RbacError) -> Self

Converts to this type from the input type.
source§

impl From<RequestError> for Error

source§

fn from(source: RequestError) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

§

impl Freeze for Error

§

impl !RefUnwindSafe for Error

§

impl Send for Error

§

impl Sync for Error

§

impl Unpin for Error

§

impl !UnwindSafe for Error

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

diff --git a/casbin/error/enum.ModelError.html b/casbin/error/enum.ModelError.html index 1a75deaa..81929fb9 100644 --- a/casbin/error/enum.ModelError.html +++ b/casbin/error/enum.ModelError.html @@ -1,4 +1,4 @@ -ModelError in casbin::error - Rust

Enum casbin::error::ModelError

source ·
pub enum ModelError {
+ModelError in casbin::error - Rust

Enum casbin::error::ModelError

source ·
pub enum ModelError {
     R(String),
     P(String),
     E(String),
diff --git a/casbin/error/enum.PolicyError.html b/casbin/error/enum.PolicyError.html
index 7fca1230..c60b4279 100644
--- a/casbin/error/enum.PolicyError.html
+++ b/casbin/error/enum.PolicyError.html
@@ -1,4 +1,4 @@
-PolicyError in casbin::error - Rust

Enum casbin::error::PolicyError

source ·
pub enum PolicyError {
+PolicyError in casbin::error - Rust

Enum casbin::error::PolicyError

source ·
pub enum PolicyError {
     UnmatchPolicyDefinition(usize, usize),
 }
Expand description

PolicyError represents any type of errors in policy

Variants§

§

UnmatchPolicyDefinition(usize, usize)

Trait Implementations§

source§

impl Debug for PolicyError

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for PolicyError

source§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Error for PolicyError

1.30.0 · source§

fn source(&self) -> Option<&(dyn Error + 'static)>

The lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more
source§

impl From<PolicyError> for Error

source§

fn from(source: PolicyError) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where diff --git a/casbin/error/enum.RbacError.html b/casbin/error/enum.RbacError.html index f3af30f9..046463a2 100644 --- a/casbin/error/enum.RbacError.html +++ b/casbin/error/enum.RbacError.html @@ -1,7 +1,7 @@ -RbacError in casbin::error - Rust

Enum casbin::error::RbacError

source ·
pub enum RbacError {
+RbacError in casbin::error - Rust

Enum casbin::error::RbacError

source ·
pub enum RbacError {
     NotFound(String),
 }
Expand description

RBAC error represents any type of errors in RBAC role manager

-

Variants§

§

NotFound(String)

Trait Implementations§

source§

impl Debug for RbacError

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for RbacError

source§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Error for RbacError

1.30.0 · source§

fn source(&self) -> Option<&(dyn Error + 'static)>

The lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more
source§

impl From<RbacError> for Error

source§

fn from(source: RbacError) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +

Variants§

§

NotFound(String)

Trait Implementations§

source§

impl Debug for RbacError

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for RbacError

source§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Error for RbacError

1.30.0 · source§

fn source(&self) -> Option<&(dyn Error + 'static)>

The lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more
source§

impl From<RbacError> for Error

source§

fn from(source: RbacError) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

diff --git a/casbin/error/enum.RequestError.html b/casbin/error/enum.RequestError.html index be4c9437..5b900c2d 100644 --- a/casbin/error/enum.RequestError.html +++ b/casbin/error/enum.RequestError.html @@ -1,7 +1,7 @@ -RequestError in casbin::error - Rust

Enum casbin::error::RequestError

source ·
pub enum RequestError {
+RequestError in casbin::error - Rust

Enum casbin::error::RequestError

source ·
pub enum RequestError {
     UnmatchRequestDefinition(usize, usize),
 }
Expand description

RequestError represents any type of errors in coming request

-

Variants§

§

UnmatchRequestDefinition(usize, usize)

Trait Implementations§

source§

impl Debug for RequestError

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for RequestError

source§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Error for RequestError

1.30.0 · source§

fn source(&self) -> Option<&(dyn Error + 'static)>

The lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more
source§

impl From<RequestError> for Error

source§

fn from(source: RequestError) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +

Variants§

§

UnmatchRequestDefinition(usize, usize)

Trait Implementations§

source§

impl Debug for RequestError

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for RequestError

source§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Error for RequestError

1.30.0 · source§

fn source(&self) -> Option<&(dyn Error + 'static)>

The lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more
source§

impl From<RequestError> for Error

source§

fn from(source: RequestError) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

diff --git a/casbin/error/index.html b/casbin/error/index.html index 7cb0cadc..710a7df5 100644 --- a/casbin/error/index.html +++ b/casbin/error/index.html @@ -1 +1 @@ -casbin::error - Rust

Module casbin::error

source ·

Structs§

  • AdapterError error represents any type of errors in adapter’s execution

Enums§

  • General casbin error
  • ModelError represents any type of errors in model configuration
  • PolicyError represents any type of errors in policy
  • RBAC error represents any type of errors in RBAC role manager
  • RequestError represents any type of errors in coming request
\ No newline at end of file +casbin::error - Rust

Module casbin::error

source ·

Structs§

  • AdapterError error represents any type of errors in adapter’s execution

Enums§

  • General casbin error
  • ModelError represents any type of errors in model configuration
  • PolicyError represents any type of errors in policy
  • RBAC error represents any type of errors in RBAC role manager
  • RequestError represents any type of errors in coming request
\ No newline at end of file diff --git a/casbin/error/struct.AdapterError.html b/casbin/error/struct.AdapterError.html index a3f22359..b6bcd8f1 100644 --- a/casbin/error/struct.AdapterError.html +++ b/casbin/error/struct.AdapterError.html @@ -1,4 +1,4 @@ -AdapterError in casbin::error - Rust

Struct casbin::error::AdapterError

source ·
pub struct AdapterError(pub Box<dyn StdError + Send + Sync>);
Expand description

AdapterError error represents any type of errors in adapter’s execution

+AdapterError in casbin::error - Rust

Struct casbin::error::AdapterError

source ·
pub struct AdapterError(pub Box<dyn StdError + Send + Sync>);
Expand description

AdapterError error represents any type of errors in adapter’s execution

Tuple Fields§

§0: Box<dyn StdError + Send + Sync>

Trait Implementations§

source§

impl Debug for AdapterError

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for AdapterError

source§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Error for AdapterError

1.30.0 · source§

fn source(&self) -> Option<&(dyn Error + 'static)>

The lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more
source§

impl From<AdapterError> for Error

source§

fn from(source: AdapterError) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where diff --git a/casbin/frontend/fn.casbin_js_get_permission_for_user.html b/casbin/frontend/fn.casbin_js_get_permission_for_user.html index 57de36bc..94aa3e8d 100644 --- a/casbin/frontend/fn.casbin_js_get_permission_for_user.html +++ b/casbin/frontend/fn.casbin_js_get_permission_for_user.html @@ -1,4 +1,4 @@ -casbin_js_get_permission_for_user in casbin::frontend - Rust

Function casbin::frontend::casbin_js_get_permission_for_user

source ·
pub fn casbin_js_get_permission_for_user(
+casbin_js_get_permission_for_user in casbin::frontend - Rust

Function casbin::frontend::casbin_js_get_permission_for_user

source ·
pub fn casbin_js_get_permission_for_user(
     e: &Enforcer,
     _user: &str,
 ) -> Result<String, Box<dyn Error>>
\ No newline at end of file diff --git a/casbin/frontend/index.html b/casbin/frontend/index.html index 70bb9b2b..e5c638e0 100644 --- a/casbin/frontend/index.html +++ b/casbin/frontend/index.html @@ -1 +1 @@ -casbin::frontend - Rust

Module casbin::frontend

source ·

Functions§

\ No newline at end of file +casbin::frontend - Rust

Module casbin::frontend

source ·

Functions§

\ No newline at end of file diff --git a/casbin/function_map/enum.OperatorFunction.html b/casbin/function_map/enum.OperatorFunction.html index 60297d99..8212aa2c 100644 --- a/casbin/function_map/enum.OperatorFunction.html +++ b/casbin/function_map/enum.OperatorFunction.html @@ -1,4 +1,4 @@ -OperatorFunction in casbin::function_map - Rust

Enum casbin::function_map::OperatorFunction

source ·
pub enum OperatorFunction {
+OperatorFunction in casbin::function_map - Rust

Enum casbin::function_map::OperatorFunction

source ·
pub enum OperatorFunction {
     Arg0(fn() -> Dynamic),
     Arg1(fn(_: ImmutableString) -> Dynamic),
     Arg2(fn(_: ImmutableString, _: ImmutableString) -> Dynamic),
diff --git a/casbin/function_map/fn.key_get.html b/casbin/function_map/fn.key_get.html
index 0997496a..8e6812ab 100644
--- a/casbin/function_map/fn.key_get.html
+++ b/casbin/function_map/fn.key_get.html
@@ -1 +1 @@
-key_get in casbin::function_map - Rust

Function casbin::function_map::key_get

source ·
pub fn key_get(key1: &str, key2: &str) -> String
\ No newline at end of file +key_get in casbin::function_map - Rust

Function casbin::function_map::key_get

source ·
pub fn key_get(key1: &str, key2: &str) -> String
\ No newline at end of file diff --git a/casbin/function_map/fn.key_get2.html b/casbin/function_map/fn.key_get2.html index 0948ecc1..32833b83 100644 --- a/casbin/function_map/fn.key_get2.html +++ b/casbin/function_map/fn.key_get2.html @@ -1 +1 @@ -key_get2 in casbin::function_map - Rust

Function casbin::function_map::key_get2

source ·
pub fn key_get2(key1: &str, key2: &str, path_var: &str) -> String
\ No newline at end of file +key_get2 in casbin::function_map - Rust

Function casbin::function_map::key_get2

source ·
pub fn key_get2(key1: &str, key2: &str, path_var: &str) -> String
\ No newline at end of file diff --git a/casbin/function_map/fn.key_get3.html b/casbin/function_map/fn.key_get3.html index 8674026a..eae52513 100644 --- a/casbin/function_map/fn.key_get3.html +++ b/casbin/function_map/fn.key_get3.html @@ -1 +1 @@ -key_get3 in casbin::function_map - Rust

Function casbin::function_map::key_get3

source ·
pub fn key_get3(key1: &str, key2: &str, path_var: &str) -> String
\ No newline at end of file +key_get3 in casbin::function_map - Rust

Function casbin::function_map::key_get3

source ·
pub fn key_get3(key1: &str, key2: &str, path_var: &str) -> String
\ No newline at end of file diff --git a/casbin/function_map/fn.key_match.html b/casbin/function_map/fn.key_match.html index 73607d9d..b4932b86 100644 --- a/casbin/function_map/fn.key_match.html +++ b/casbin/function_map/fn.key_match.html @@ -1 +1 @@ -key_match in casbin::function_map - Rust

Function casbin::function_map::key_match

source ·
pub fn key_match(key1: &str, key2: &str) -> bool
\ No newline at end of file +key_match in casbin::function_map - Rust

Function casbin::function_map::key_match

source ·
pub fn key_match(key1: &str, key2: &str) -> bool
\ No newline at end of file diff --git a/casbin/function_map/fn.key_match2.html b/casbin/function_map/fn.key_match2.html index fbaa441e..23fd555e 100644 --- a/casbin/function_map/fn.key_match2.html +++ b/casbin/function_map/fn.key_match2.html @@ -1 +1 @@ -key_match2 in casbin::function_map - Rust

Function casbin::function_map::key_match2

source ·
pub fn key_match2(key1: &str, key2: &str) -> bool
\ No newline at end of file +key_match2 in casbin::function_map - Rust

Function casbin::function_map::key_match2

source ·
pub fn key_match2(key1: &str, key2: &str) -> bool
\ No newline at end of file diff --git a/casbin/function_map/fn.key_match3.html b/casbin/function_map/fn.key_match3.html index f18d80eb..b37cd294 100644 --- a/casbin/function_map/fn.key_match3.html +++ b/casbin/function_map/fn.key_match3.html @@ -1 +1 @@ -key_match3 in casbin::function_map - Rust

Function casbin::function_map::key_match3

source ·
pub fn key_match3(key1: &str, key2: &str) -> bool
\ No newline at end of file +key_match3 in casbin::function_map - Rust

Function casbin::function_map::key_match3

source ·
pub fn key_match3(key1: &str, key2: &str) -> bool
\ No newline at end of file diff --git a/casbin/function_map/fn.regex_match.html b/casbin/function_map/fn.regex_match.html index 84741353..960381fa 100644 --- a/casbin/function_map/fn.regex_match.html +++ b/casbin/function_map/fn.regex_match.html @@ -1 +1 @@ -regex_match in casbin::function_map - Rust

Function casbin::function_map::regex_match

source ·
pub fn regex_match(key1: &str, key2: &str) -> bool
\ No newline at end of file +regex_match in casbin::function_map - Rust

Function casbin::function_map::regex_match

source ·
pub fn regex_match(key1: &str, key2: &str) -> bool
\ No newline at end of file diff --git a/casbin/function_map/index.html b/casbin/function_map/index.html index 81df5b97..185accbc 100644 --- a/casbin/function_map/index.html +++ b/casbin/function_map/index.html @@ -1 +1 @@ -casbin::function_map - Rust
\ No newline at end of file +casbin::function_map - Rust
\ No newline at end of file diff --git a/casbin/function_map/struct.FunctionMap.html b/casbin/function_map/struct.FunctionMap.html index ce23db4f..efe69dc3 100644 --- a/casbin/function_map/struct.FunctionMap.html +++ b/casbin/function_map/struct.FunctionMap.html @@ -1,4 +1,4 @@ -FunctionMap in casbin::function_map - Rust

Struct casbin::function_map::FunctionMap

source ·
pub struct FunctionMap { /* private fields */ }

Implementations§

source§

impl FunctionMap

source

pub fn add_function(&mut self, fname: &str, f: OperatorFunction)

source

pub fn get_functions( +FunctionMap in casbin::function_map - Rust

Struct casbin::function_map::FunctionMap

source ·
pub struct FunctionMap { /* private fields */ }

Implementations§

source§

impl FunctionMap

source

pub fn add_function(&mut self, fname: &str, f: OperatorFunction)

source

pub fn get_functions( &self, ) -> impl Iterator<Item = (&String, &OperatorFunction)>

Trait Implementations§

source§

impl Default for FunctionMap

source§

fn default() -> FunctionMap

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where diff --git a/casbin/index.html b/casbin/index.html index 38dca82e..c733876f 100644 --- a/casbin/index.html +++ b/casbin/index.html @@ -1 +1 @@ -casbin - Rust
\ No newline at end of file +casbin - Rust
\ No newline at end of file diff --git a/casbin/macro.get_or_err.html b/casbin/macro.get_or_err.html index a885fc9d..4a72a494 100644 --- a/casbin/macro.get_or_err.html +++ b/casbin/macro.get_or_err.html @@ -1,3 +1,3 @@ -get_or_err in casbin - Rust

Macro casbin::get_or_err

source ·
macro_rules! get_or_err {
+get_or_err in casbin - Rust

Macro casbin::get_or_err

source ·
macro_rules! get_or_err {
     ($this:ident, $key:expr, $err:expr, $msg:expr) => { ... };
 }
\ No newline at end of file diff --git a/casbin/macro.get_or_err_with_context.html b/casbin/macro.get_or_err_with_context.html index bbd4c9d8..8cd0889b 100644 --- a/casbin/macro.get_or_err_with_context.html +++ b/casbin/macro.get_or_err_with_context.html @@ -1,3 +1,3 @@ -get_or_err_with_context in casbin - Rust

Macro casbin::get_or_err_with_context

source ·
macro_rules! get_or_err_with_context {
+get_or_err_with_context in casbin - Rust

Macro casbin::get_or_err_with_context

source ·
macro_rules! get_or_err_with_context {
     ($this:ident, $key:expr, $ctx:expr, $err:expr, $msg:expr) => { ... };
 }
\ No newline at end of file diff --git a/casbin/macro.push_index_if_explain.html b/casbin/macro.push_index_if_explain.html index 570a93b3..22faf385 100644 --- a/casbin/macro.push_index_if_explain.html +++ b/casbin/macro.push_index_if_explain.html @@ -1,3 +1,3 @@ -push_index_if_explain in casbin - Rust

Macro casbin::push_index_if_explain

source ·
macro_rules! push_index_if_explain {
+push_index_if_explain in casbin - Rust

Macro casbin::push_index_if_explain

source ·
macro_rules! push_index_if_explain {
     ($this:ident) => { ... };
 }
\ No newline at end of file diff --git a/casbin/macro.register_g_function.html b/casbin/macro.register_g_function.html index acc75229..4b0f1e41 100644 --- a/casbin/macro.register_g_function.html +++ b/casbin/macro.register_g_function.html @@ -1,3 +1,3 @@ -register_g_function in casbin - Rust

Macro casbin::register_g_function

source ·
macro_rules! register_g_function {
+register_g_function in casbin - Rust

Macro casbin::register_g_function

source ·
macro_rules! register_g_function {
     ($enforcer:ident, $fname:ident, $ast:ident) => { ... };
 }
\ No newline at end of file diff --git a/casbin/prelude/index.html b/casbin/prelude/index.html index 601dc90d..bc4ace48 100644 --- a/casbin/prelude/index.html +++ b/casbin/prelude/index.html @@ -1 +1 @@ -casbin::prelude - Rust

Module casbin::prelude

source ·

Re-exports§

\ No newline at end of file +casbin::prelude - Rust

Module casbin::prelude

source ·

Re-exports§

\ No newline at end of file diff --git a/casbin/rhai/attr.export_fn.html b/casbin/rhai/attr.export_fn.html index 2d9f5302..1f28169b 100644 --- a/casbin/rhai/attr.export_fn.html +++ b/casbin/rhai/attr.export_fn.html @@ -1,4 +1,4 @@ -export_fn in casbin::rhai - Rust

Attribute Macro casbin::rhai::export_fn

#[export_fn]
Expand description

Attribute, when put on a Rust function, turns it into a plugin function.

+export_fn in casbin::rhai - Rust

Attribute Macro casbin::rhai::export_fn

#[export_fn]
Expand description

Attribute, when put on a Rust function, turns it into a plugin function.

§Deprecated

This macro is deprecated as it performs no additional value.

This method will be removed in the next major version.

diff --git a/casbin/rhai/attr.export_module.html b/casbin/rhai/attr.export_module.html index 5de33e89..99a1340a 100644 --- a/casbin/rhai/attr.export_module.html +++ b/casbin/rhai/attr.export_module.html @@ -1,4 +1,4 @@ -export_module in casbin::rhai - Rust

Attribute Macro casbin::rhai::export_module

#[export_module]
Expand description

Attribute, when put on a Rust module, turns it into a plugin module.

+export_module in casbin::rhai - Rust

Attribute Macro casbin::rhai::export_module

#[export_module]
Expand description

Attribute, when put on a Rust module, turns it into a plugin module.

§Usage

use rhai::plugin::*;
 
diff --git a/casbin/rhai/attr.expose_under_internals.html b/casbin/rhai/attr.expose_under_internals.html
index 7aae7c95..b13ce154 100644
--- a/casbin/rhai/attr.expose_under_internals.html
+++ b/casbin/rhai/attr.expose_under_internals.html
@@ -1,4 +1,4 @@
-expose_under_internals in casbin::rhai - Rust

Attribute Macro casbin::rhai::expose_under_internals

#[expose_under_internals]
Expand description

Macro to automatically expose a Rust function, type-def or use statement as pub when under the +expose_under_internals in casbin::rhai - Rust

Attribute Macro casbin::rhai::expose_under_internals

#[expose_under_internals]
Expand description

Macro to automatically expose a Rust function, type-def or use statement as pub when under the internals feature.

If the internals is not enabled, the item will be exposed as pub(crate).

In order to avoid confusion, there must not be any visibility modifier on the item.

diff --git a/casbin/rhai/config/hashing/fn.get_ahash_seed.html b/casbin/rhai/config/hashing/fn.get_ahash_seed.html index 461bc55a..57eae35b 100644 --- a/casbin/rhai/config/hashing/fn.get_ahash_seed.html +++ b/casbin/rhai/config/hashing/fn.get_ahash_seed.html @@ -1,4 +1,4 @@ -get_ahash_seed in casbin::rhai::config::hashing - Rust

Function casbin::rhai::config::hashing::get_ahash_seed

pub fn get_ahash_seed() -> &'static Option<[u64; 4]>
👎Deprecated since 1.17.0: use get_hashing_seed instead
Expand description

Get the current hashing Seed.

+get_ahash_seed in casbin::rhai::config::hashing - Rust

Function casbin::rhai::config::hashing::get_ahash_seed

pub fn get_ahash_seed() -> &'static Option<[u64; 4]>
👎Deprecated since 1.17.0: use get_hashing_seed instead
Expand description

Get the current hashing Seed.

§Deprecated

This method is deprecated. Use get_hashing_seed instead.

diff --git a/casbin/rhai/config/hashing/fn.get_hashing_seed.html b/casbin/rhai/config/hashing/fn.get_hashing_seed.html index 3a745b41..a8615fae 100644 --- a/casbin/rhai/config/hashing/fn.get_hashing_seed.html +++ b/casbin/rhai/config/hashing/fn.get_hashing_seed.html @@ -1,4 +1,4 @@ -get_hashing_seed in casbin::rhai::config::hashing - Rust

Function casbin::rhai::config::hashing::get_hashing_seed

pub fn get_hashing_seed() -> &'static Option<[u64; 4]>
Expand description

Get the current hashing Seed.

+get_hashing_seed in casbin::rhai::config::hashing - Rust

Function casbin::rhai::config::hashing::get_hashing_seed

pub fn get_hashing_seed() -> &'static Option<[u64; 4]>
Expand description

Get the current hashing Seed.

If the seed is not yet defined, the RHAI_HASHING_SEED environment variable (if any) is used.

Otherwise, the hashing seed is randomized to protect against DOS attacks.

See rhai::config::hashing::set_hashing_seed for more.

diff --git a/casbin/rhai/config/hashing/fn.set_ahash_seed.html b/casbin/rhai/config/hashing/fn.set_ahash_seed.html index f8eec475..75eaa742 100644 --- a/casbin/rhai/config/hashing/fn.set_ahash_seed.html +++ b/casbin/rhai/config/hashing/fn.set_ahash_seed.html @@ -1,4 +1,4 @@ -set_ahash_seed in casbin::rhai::config::hashing - Rust

Function casbin::rhai::config::hashing::set_ahash_seed

pub fn set_ahash_seed(
+set_ahash_seed in casbin::rhai::config::hashing - Rust

Function casbin::rhai::config::hashing::set_ahash_seed

pub fn set_ahash_seed(
     new_seed: Option<[u64; 4]>,
 ) -> Result<(), Option<[u64; 4]>>
👎Deprecated since 1.17.0: use set_hashing_seed instead
Expand description

Set the hashing seed. This is used to hash functions etc.

§Deprecated

diff --git a/casbin/rhai/config/hashing/fn.set_hashing_seed.html b/casbin/rhai/config/hashing/fn.set_hashing_seed.html index cf6ca2ba..a4f8706c 100644 --- a/casbin/rhai/config/hashing/fn.set_hashing_seed.html +++ b/casbin/rhai/config/hashing/fn.set_hashing_seed.html @@ -1,4 +1,4 @@ -set_hashing_seed in casbin::rhai::config::hashing - Rust

Function casbin::rhai::config::hashing::set_hashing_seed

pub fn set_hashing_seed(
+set_hashing_seed in casbin::rhai::config::hashing - Rust

Function casbin::rhai::config::hashing::set_hashing_seed

pub fn set_hashing_seed(
     new_seed: Option<[u64; 4]>,
 ) -> Result<(), Option<[u64; 4]>>
Expand description

Set the hashing seed. This is used to hash functions etc.

This is a static global value and affects every Rhai instance. diff --git a/casbin/rhai/config/hashing/index.html b/casbin/rhai/config/hashing/index.html index 57c637b0..870bb8cc 100644 --- a/casbin/rhai/config/hashing/index.html +++ b/casbin/rhai/config/hashing/index.html @@ -1,4 +1,4 @@ -casbin::rhai::config::hashing - Rust

Module casbin::rhai::config::hashing

Expand description

Fixed hashing seeds for stable hashing.

+casbin::rhai::config::hashing - Rust

Module casbin::rhai::config::hashing

Expand description

Fixed hashing seeds for stable hashing.

Set to None to disable stable hashing.

See rhai::config::hashing::set_hashing_seed.

§Example

diff --git a/casbin/rhai/config/index.html b/casbin/rhai/config/index.html index d1edb2ec..f5de7306 100644 --- a/casbin/rhai/config/index.html +++ b/casbin/rhai/config/index.html @@ -1,2 +1,2 @@ -casbin::rhai::config - Rust

Module casbin::rhai::config

Expand description

Configuration for Rhai.

+casbin::rhai::config - Rust

Module casbin::rhai::config

Expand description

Configuration for Rhai.

Modules§

  • Fixed hashing seeds for stable hashing.
\ No newline at end of file diff --git a/casbin/rhai/constant.FUNC_TO_DEBUG.html b/casbin/rhai/constant.FUNC_TO_DEBUG.html index 102817e0..3d77629f 100644 --- a/casbin/rhai/constant.FUNC_TO_DEBUG.html +++ b/casbin/rhai/constant.FUNC_TO_DEBUG.html @@ -1,3 +1,3 @@ -FUNC_TO_DEBUG in casbin::rhai - Rust

Constant casbin::rhai::FUNC_TO_DEBUG

pub const FUNC_TO_DEBUG: &'static str;
Expand description

Standard debug-print function.

+FUNC_TO_DEBUG in casbin::rhai - Rust

Constant casbin::rhai::FUNC_TO_DEBUG

pub const FUNC_TO_DEBUG: &'static str;
Expand description

Standard debug-print function.

This function is called to convert any type into text format suitable for debugging.

\ No newline at end of file diff --git a/casbin/rhai/constant.FUNC_TO_STRING.html b/casbin/rhai/constant.FUNC_TO_STRING.html index f37da73b..f221012f 100644 --- a/casbin/rhai/constant.FUNC_TO_STRING.html +++ b/casbin/rhai/constant.FUNC_TO_STRING.html @@ -1,3 +1,3 @@ -FUNC_TO_STRING in casbin::rhai - Rust

Constant casbin::rhai::FUNC_TO_STRING

pub const FUNC_TO_STRING: &'static str;
Expand description

Standard pretty-print function.

+FUNC_TO_STRING in casbin::rhai - Rust

Constant casbin::rhai::FUNC_TO_STRING

pub const FUNC_TO_STRING: &'static str;
Expand description

Standard pretty-print function.

This function is called to convert any type into text format for display.

\ No newline at end of file diff --git a/casbin/rhai/constant.OP_CONTAINS.html b/casbin/rhai/constant.OP_CONTAINS.html index c0c6e1bf..ed999625 100644 --- a/casbin/rhai/constant.OP_CONTAINS.html +++ b/casbin/rhai/constant.OP_CONTAINS.html @@ -1,3 +1,3 @@ -OP_CONTAINS in casbin::rhai - Rust

Constant casbin::rhai::OP_CONTAINS

pub const OP_CONTAINS: &'static str;
Expand description

Standard containment testing function.

+OP_CONTAINS in casbin::rhai - Rust

Constant casbin::rhai::OP_CONTAINS

pub const OP_CONTAINS: &'static str;
Expand description

Standard containment testing function.

The in operator is implemented as a call to this function.

\ No newline at end of file diff --git a/casbin/rhai/constant.OP_EQUALS.html b/casbin/rhai/constant.OP_EQUALS.html index d4ca7d2f..3d96e4fc 100644 --- a/casbin/rhai/constant.OP_EQUALS.html +++ b/casbin/rhai/constant.OP_EQUALS.html @@ -1,4 +1,4 @@ -OP_EQUALS in casbin::rhai - Rust

Constant casbin::rhai::OP_EQUALS

pub const OP_EQUALS: &'static str;
Expand description

Standard equality comparison operator.

+OP_EQUALS in casbin::rhai - Rust

Constant casbin::rhai::OP_EQUALS

pub const OP_EQUALS: &'static str;
Expand description

Standard equality comparison operator.

Some standard functions (e.g. searching an Array) implicitly call this function to compare two Dynamic values.

\ No newline at end of file diff --git a/casbin/rhai/derive.CustomType.html b/casbin/rhai/derive.CustomType.html index c6ae88bd..45f51936 100644 --- a/casbin/rhai/derive.CustomType.html +++ b/casbin/rhai/derive.CustomType.html @@ -1,4 +1,4 @@ -CustomType in casbin::rhai - Rust

Derive Macro casbin::rhai::CustomType

#[derive(CustomType)]
+CustomType in casbin::rhai - Rust

Derive Macro casbin::rhai::CustomType

#[derive(CustomType)]
 {
     // Attributes available to this derive:
     #[rhai_type]
diff --git a/casbin/rhai/enum.EvalAltResult.html b/casbin/rhai/enum.EvalAltResult.html
index 375d552e..d0147a65 100644
--- a/casbin/rhai/enum.EvalAltResult.html
+++ b/casbin/rhai/enum.EvalAltResult.html
@@ -1,4 +1,4 @@
-EvalAltResult in casbin::rhai - Rust

Enum casbin::rhai::EvalAltResult

#[non_exhaustive]
pub enum EvalAltResult { +EvalAltResult in casbin::rhai - Rust

Enum casbin::rhai::EvalAltResult

#[non_exhaustive]
pub enum EvalAltResult {
Show 35 variants ErrorSystem(String, Box<dyn Error + Send + Sync>), ErrorParsing(ParseErrorType, Position), ErrorVariableExists(String, Position), @@ -102,7 +102,7 @@

§Thread

pub fn take_position(&mut self) -> Position

Remove the position information from this error and return it.

The position of this error is set to NONE afterwards.

pub fn set_position(&mut self, new_position: Position) -> &mut EvalAltResult

Override the position of this error.

-

Trait Implementations§

§

impl Debug for EvalAltResult

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Display for EvalAltResult

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Error for EvalAltResult

1.30.0 · source§

fn source(&self) -> Option<&(dyn Error + 'static)>

The lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more
§

impl<T> From<EvalAltResult> for Result<T, Box<EvalAltResult>>

§

fn from(err: EvalAltResult) -> Result<T, Box<EvalAltResult>>

Converts to this type from the input type.
§

impl From<ParseError> for EvalAltResult

§

fn from(err: ParseError) -> EvalAltResult

Converts to this type from the input type.
§

impl From<ParseErrorType> for EvalAltResult

§

fn from(err: ParseErrorType) -> EvalAltResult

Converts to this type from the input type.
§

impl<T> From<T> for EvalAltResult
where +

Trait Implementations§

§

impl Debug for EvalAltResult

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Display for EvalAltResult

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Error for EvalAltResult

1.30.0 · source§

fn source(&self) -> Option<&(dyn Error + 'static)>

The lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more
§

impl<T> From<EvalAltResult> for Result<T, Box<EvalAltResult>>

§

fn from(err: EvalAltResult) -> Result<T, Box<EvalAltResult>>

Converts to this type from the input type.
§

impl From<ParseError> for EvalAltResult

§

fn from(err: ParseError) -> EvalAltResult

Converts to this type from the input type.
§

impl From<ParseErrorType> for EvalAltResult

§

fn from(err: ParseErrorType) -> EvalAltResult

Converts to this type from the input type.
§

impl<T> From<T> for EvalAltResult
where T: AsRef<str>,

§

fn from(err: T) -> EvalAltResult

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where diff --git a/casbin/rhai/enum.FnAccess.html b/casbin/rhai/enum.FnAccess.html index 4921d2e3..307c3223 100644 --- a/casbin/rhai/enum.FnAccess.html +++ b/casbin/rhai/enum.FnAccess.html @@ -1,4 +1,4 @@ -FnAccess in casbin::rhai - Rust

Enum casbin::rhai::FnAccess

#[non_exhaustive]
pub enum FnAccess { +FnAccess in casbin::rhai - Rust

Enum casbin::rhai::FnAccess

#[non_exhaustive]
pub enum FnAccess { Private, Public, }
Expand description

A type representing the access mode of a function.

diff --git a/casbin/rhai/enum.FnNamespace.html b/casbin/rhai/enum.FnNamespace.html index 4ba30142..96863acc 100644 --- a/casbin/rhai/enum.FnNamespace.html +++ b/casbin/rhai/enum.FnNamespace.html @@ -1,4 +1,4 @@ -FnNamespace in casbin::rhai - Rust

Enum casbin::rhai::FnNamespace

#[non_exhaustive]
pub enum FnNamespace { +FnNamespace in casbin::rhai - Rust

Enum casbin::rhai::FnNamespace

#[non_exhaustive]
pub enum FnNamespace { Internal, Global, }
Expand description

A type representing the namespace of a function.

diff --git a/casbin/rhai/enum.LexError.html b/casbin/rhai/enum.LexError.html index aa8b3610..c920a847 100644 --- a/casbin/rhai/enum.LexError.html +++ b/casbin/rhai/enum.LexError.html @@ -1,4 +1,4 @@ -LexError in casbin::rhai - Rust

Enum casbin::rhai::LexError

#[non_exhaustive]
pub enum LexError { +LexError in casbin::rhai - Rust

Enum casbin::rhai::LexError

#[non_exhaustive]
pub enum LexError { UnexpectedInput(String), UnterminatedString, StringTooLong(usize), diff --git a/casbin/rhai/enum.ParseErrorType.html b/casbin/rhai/enum.ParseErrorType.html index 602dd1b8..d4982aa7 100644 --- a/casbin/rhai/enum.ParseErrorType.html +++ b/casbin/rhai/enum.ParseErrorType.html @@ -1,4 +1,4 @@ -ParseErrorType in casbin::rhai - Rust

Enum casbin::rhai::ParseErrorType

#[non_exhaustive]
pub enum ParseErrorType { +ParseErrorType in casbin::rhai - Rust

Enum casbin::rhai::ParseErrorType

#[non_exhaustive]
pub enum ParseErrorType {
Show 38 variants UnexpectedEOF, BadInput(LexError), UnknownOperator(String), diff --git a/casbin/rhai/fn.eval.html b/casbin/rhai/fn.eval.html index 76e2e6de..1179e888 100644 --- a/casbin/rhai/fn.eval.html +++ b/casbin/rhai/fn.eval.html @@ -1,4 +1,4 @@ -eval in casbin::rhai - Rust

Function casbin::rhai::eval

pub fn eval<T>(script: &str) -> Result<T, Box<EvalAltResult>>
where +eval in casbin::rhai - Rust

Function casbin::rhai::eval

pub fn eval<T>(script: &str) -> Result<T, Box<EvalAltResult>>
where T: Variant + Clone,
Expand description

Evaluate a string as a script, returning the result value or an error.

§Example

let result: i64 = rhai::eval("40 + 2")?;
diff --git a/casbin/rhai/fn.eval_file.html b/casbin/rhai/fn.eval_file.html
index 4cc1c69b..6a02b095 100644
--- a/casbin/rhai/fn.eval_file.html
+++ b/casbin/rhai/fn.eval_file.html
@@ -1,4 +1,4 @@
-eval_file in casbin::rhai - Rust

Function casbin::rhai::eval_file

pub fn eval_file<T>(path: impl AsRef<Path>) -> Result<T, Box<EvalAltResult>>
where +eval_file in casbin::rhai - Rust

Function casbin::rhai::eval_file

pub fn eval_file<T>(path: impl AsRef<Path>) -> Result<T, Box<EvalAltResult>>
where T: Variant + Clone,
Expand description

Evaluate a script file, returning the result value or an error.

Not available under no_std or WASM.

§Example

diff --git a/casbin/rhai/fn.format_map_as_json.html b/casbin/rhai/fn.format_map_as_json.html index 5f7686c6..6feea9f7 100644 --- a/casbin/rhai/fn.format_map_as_json.html +++ b/casbin/rhai/fn.format_map_as_json.html @@ -1,4 +1,4 @@ -format_map_as_json in casbin::rhai - Rust

Function casbin::rhai::format_map_as_json

pub fn format_map_as_json(
+format_map_as_json in casbin::rhai - Rust

Function casbin::rhai::format_map_as_json

pub fn format_map_as_json(
     map: &BTreeMap<SmartString<LazyCompact>, Dynamic>,
 ) -> String
Expand description

Return the JSON representation of an object map.

Not available under no_std.

diff --git a/casbin/rhai/fn.run.html b/casbin/rhai/fn.run.html index acbd7718..a73fe00a 100644 --- a/casbin/rhai/fn.run.html +++ b/casbin/rhai/fn.run.html @@ -1,4 +1,4 @@ -run in casbin::rhai - Rust

Function casbin::rhai::run

pub fn run(script: &str) -> Result<(), Box<EvalAltResult>>
Expand description

Evaluate a string as a script.

+run in casbin::rhai - Rust

Function casbin::rhai::run

pub fn run(script: &str) -> Result<(), Box<EvalAltResult>>
Expand description

Evaluate a string as a script.

§Example

rhai::run("print(40 + 2);")?;
\ No newline at end of file diff --git a/casbin/rhai/fn.run_file.html b/casbin/rhai/fn.run_file.html index fa5a057a..c29497c7 100644 --- a/casbin/rhai/fn.run_file.html +++ b/casbin/rhai/fn.run_file.html @@ -1,4 +1,4 @@ -run_file in casbin::rhai - Rust

Function casbin::rhai::run_file

pub fn run_file(path: impl AsRef<Path>) -> Result<(), Box<EvalAltResult>>
Expand description

Evaluate a file.

+run_file in casbin::rhai - Rust

Function casbin::rhai::run_file

pub fn run_file(path: impl AsRef<Path>) -> Result<(), Box<EvalAltResult>>
Expand description

Evaluate a file.

Not available under no_std or WASM.

§Example

rhai::run_file("script.rhai")?;
diff --git a/casbin/rhai/index.html b/casbin/rhai/index.html index 56c5bc77..df90f5cc 100644 --- a/casbin/rhai/index.html +++ b/casbin/rhai/index.html @@ -1,4 +1,4 @@ -casbin::rhai - Rust

Module casbin::rhai

source ·

Modules§

  • Configuration for Rhai.
  • Module containing all built-in packages available to Rhai, plus facilities to define custom packages.
  • Module defining macros for developing plugins.
  • (serde) Serialization and deserialization support for serde. +casbin::rhai - Rust

    Module casbin::rhai

    source ·

    Modules§

    • Configuration for Rhai.
    • Module containing all built-in packages available to Rhai, plus facilities to define custom packages.
    • Module defining macros for developing plugins.
    • (serde) Serialization and deserialization support for serde. Exported under the serde feature only.

    Macros§

    Structs§

    • Compiled AST (abstract syntax tree) of a Rhai script.
    • Dynamic type containing any value.
    • Rhai main scripting engine.
    • Context of a script evaluation process.
    • An expression sub-tree in an AST.
    • A general function pointer, which may carry additional (i.e. curried) argument values to be passed onto a function during a call.
    • Type for fine-tuned module function registration.
    • The system immutable string type.
    • A measurement of a monotonically nondecreasing clock. diff --git a/casbin/rhai/macro.combine_with_exported_module.html b/casbin/rhai/macro.combine_with_exported_module.html index a72c7a36..1d898d3b 100644 --- a/casbin/rhai/macro.combine_with_exported_module.html +++ b/casbin/rhai/macro.combine_with_exported_module.html @@ -1,4 +1,4 @@ -combine_with_exported_module in casbin::rhai - Rust

      Macro casbin::rhai::combine_with_exported_module

      combine_with_exported_module!() { /* proc-macro */ }
      Expand description

      Macro to combine a plugin module into an existing module.

      +combine_with_exported_module in casbin::rhai - Rust

      Macro casbin::rhai::combine_with_exported_module

      combine_with_exported_module!() { /* proc-macro */ }
      Expand description

      Macro to combine a plugin module into an existing module.

      Functions and variables in the plugin module overrides any existing similarly-named functions and variables in the target module.

      This call is intended to be used within the [def_package!][crate::def_package] macro to define diff --git a/casbin/rhai/macro.def_package.html b/casbin/rhai/macro.def_package.html index 2f9e6d74..6dd6262c 100644 --- a/casbin/rhai/macro.def_package.html +++ b/casbin/rhai/macro.def_package.html @@ -1,4 +1,4 @@ -def_package in casbin::rhai - Rust

      Macro casbin::rhai::def_package

      macro_rules! def_package {
      +def_package in casbin::rhai - Rust

      Macro casbin::rhai::def_package

      macro_rules! def_package {
           ($($(#[$outer:meta])* $mod:vis $package:ident($lib:ident)
                       $( : $($(#[$base_meta:meta])* $base_pkg:ty),+ )?
                       $block:block
      diff --git a/casbin/rhai/macro.exported_module.html b/casbin/rhai/macro.exported_module.html
      index 15b0ca5b..6218e7d0 100644
      --- a/casbin/rhai/macro.exported_module.html
      +++ b/casbin/rhai/macro.exported_module.html
      @@ -1,4 +1,4 @@
      -exported_module in casbin::rhai - Rust

      Macro casbin::rhai::exported_module

      exported_module!() { /* proc-macro */ }
      Expand description

      Macro to generate a Rhai Module from a plugin module defined via #[export_module].

      +exported_module in casbin::rhai - Rust

      Macro casbin::rhai::exported_module

      exported_module!() { /* proc-macro */ }
      Expand description

      Macro to generate a Rhai Module from a plugin module defined via #[export_module].

      §Usage

      use rhai::plugin::*;
       
      diff --git a/casbin/rhai/macro.register_exported_fn.html b/casbin/rhai/macro.register_exported_fn.html
      index 93d529c9..3d9cf8f1 100644
      --- a/casbin/rhai/macro.register_exported_fn.html
      +++ b/casbin/rhai/macro.register_exported_fn.html
      @@ -1,4 +1,4 @@
      -register_exported_fn in casbin::rhai - Rust

      Macro casbin::rhai::register_exported_fn

      register_exported_fn!() { /* proc-macro */ }
      Expand description

      Macro to register a plugin function (defined via #[export_fn]) into an Engine.

      +register_exported_fn in casbin::rhai - Rust

      Macro casbin::rhai::register_exported_fn

      register_exported_fn!() { /* proc-macro */ }
      Expand description

      Macro to register a plugin function (defined via #[export_fn]) into an Engine.

      §Deprecated

      This macro is deprecated as it performs no additional value.

      This method will be removed in the next major version.

      diff --git a/casbin/rhai/macro.set_exported_fn.html b/casbin/rhai/macro.set_exported_fn.html index 455b8292..fa98808e 100644 --- a/casbin/rhai/macro.set_exported_fn.html +++ b/casbin/rhai/macro.set_exported_fn.html @@ -1,4 +1,4 @@ -set_exported_fn in casbin::rhai - Rust

      Macro casbin::rhai::set_exported_fn

      set_exported_fn!() { /* proc-macro */ }
      Expand description

      Macro to register a plugin function into a Rhai Module.

      +set_exported_fn in casbin::rhai - Rust

      Macro casbin::rhai::set_exported_fn

      set_exported_fn!() { /* proc-macro */ }
      Expand description

      Macro to register a plugin function into a Rhai Module.

      §Deprecated

      This macro is deprecated as it performs no additional value.

      This method will be removed in the next major version.

      diff --git a/casbin/rhai/macro.set_exported_global_fn.html b/casbin/rhai/macro.set_exported_global_fn.html index a63eda56..d19cfdca 100644 --- a/casbin/rhai/macro.set_exported_global_fn.html +++ b/casbin/rhai/macro.set_exported_global_fn.html @@ -1,4 +1,4 @@ -set_exported_global_fn in casbin::rhai - Rust

      Macro casbin::rhai::set_exported_global_fn

      set_exported_global_fn!() { /* proc-macro */ }
      Expand description

      Macro to register a plugin function into a Rhai Module and expose it globally.

      +set_exported_global_fn in casbin::rhai - Rust

      Macro casbin::rhai::set_exported_global_fn

      set_exported_global_fn!() { /* proc-macro */ }
      Expand description

      Macro to register a plugin function into a Rhai Module and expose it globally.

      §Deprecated

      This macro is deprecated as it performs no additional value.

      This method will be removed in the next major version.

      diff --git a/casbin/rhai/packages/index.html b/casbin/rhai/packages/index.html index f79194d9..adb762eb 100644 --- a/casbin/rhai/packages/index.html +++ b/casbin/rhai/packages/index.html @@ -1,2 +1,2 @@ -casbin::rhai::packages - Rust

      Module casbin::rhai::packages

      Expand description

      Module containing all built-in packages available to Rhai, plus facilities to define custom packages.

      +casbin::rhai::packages - Rust

      Module casbin::rhai::packages

      Expand description

      Module containing all built-in packages available to Rhai, plus facilities to define custom packages.

      Structs§

      Traits§

      • Trait that all packages must implement.
      \ No newline at end of file diff --git a/casbin/rhai/packages/struct.ArithmeticPackage.html b/casbin/rhai/packages/struct.ArithmeticPackage.html index 2b1de8db..35adaa34 100644 --- a/casbin/rhai/packages/struct.ArithmeticPackage.html +++ b/casbin/rhai/packages/struct.ArithmeticPackage.html @@ -1,4 +1,4 @@ -ArithmeticPackage in casbin::rhai::packages - Rust

      Struct casbin::rhai::packages::ArithmeticPackage

      pub struct ArithmeticPackage(/* private fields */);
      Expand description

      Basic arithmetic package.

      +ArithmeticPackage in casbin::rhai::packages - Rust

      Struct casbin::rhai::packages::ArithmeticPackage

      pub struct ArithmeticPackage(/* private fields */);
      Expand description

      Basic arithmetic package.

      Implementations§

      §

      impl ArithmeticPackage

      pub fn new() -> ArithmeticPackage

      Create a new ArithmeticPackage

      Trait Implementations§

      §

      impl Default for ArithmeticPackage

      §

      fn default() -> ArithmeticPackage

      Returns the “default value” for a type. Read more
      §

      impl Package for ArithmeticPackage

      §

      fn as_shared_module(&self) -> Arc<Module>

      Get a reference to a shared module from this package.
      §

      fn init(lib: &mut Module)

      Initialize the package. Functions should be registered into module here.
      §

      fn init_engine(_engine: &mut Engine)

      Initialize the package with an Engine. Read more
      §

      fn register_into_engine(&self, engine: &mut Engine) -> &Self

      Register the package with an Engine. Read more

      Auto Trait Implementations§

      Blanket Implementations§

      source§

      impl<T> Any for T
      where diff --git a/casbin/rhai/packages/struct.BasicArrayPackage.html b/casbin/rhai/packages/struct.BasicArrayPackage.html index 3f510aa2..123677fe 100644 --- a/casbin/rhai/packages/struct.BasicArrayPackage.html +++ b/casbin/rhai/packages/struct.BasicArrayPackage.html @@ -1,4 +1,4 @@ -BasicArrayPackage in casbin::rhai::packages - Rust

      Struct casbin::rhai::packages::BasicArrayPackage

      pub struct BasicArrayPackage(/* private fields */);
      Expand description

      Package of basic array utilities.

      +BasicArrayPackage in casbin::rhai::packages - Rust

      Struct casbin::rhai::packages::BasicArrayPackage

      pub struct BasicArrayPackage(/* private fields */);
      Expand description

      Package of basic array utilities.

      Implementations§

      §

      impl BasicArrayPackage

      pub fn new() -> BasicArrayPackage

      Create a new BasicArrayPackage

      Trait Implementations§

      §

      impl Default for BasicArrayPackage

      §

      fn default() -> BasicArrayPackage

      Returns the “default value” for a type. Read more
      §

      impl Package for BasicArrayPackage

      §

      fn as_shared_module(&self) -> Arc<Module>

      Get a reference to a shared module from this package.
      §

      fn init(lib: &mut Module)

      Initialize the package. Functions should be registered into module here.
      §

      fn init_engine(_engine: &mut Engine)

      Initialize the package with an Engine. Read more
      §

      fn register_into_engine(&self, engine: &mut Engine) -> &Self

      Register the package with an Engine. Read more

      Auto Trait Implementations§

      Blanket Implementations§

      source§

      impl<T> Any for T
      where diff --git a/casbin/rhai/packages/struct.BasicBlobPackage.html b/casbin/rhai/packages/struct.BasicBlobPackage.html index 18108c2b..75baed7f 100644 --- a/casbin/rhai/packages/struct.BasicBlobPackage.html +++ b/casbin/rhai/packages/struct.BasicBlobPackage.html @@ -1,4 +1,4 @@ -BasicBlobPackage in casbin::rhai::packages - Rust

      Struct casbin::rhai::packages::BasicBlobPackage

      pub struct BasicBlobPackage(/* private fields */);
      Expand description

      Package of basic BLOB utilities.

      +BasicBlobPackage in casbin::rhai::packages - Rust

      Struct casbin::rhai::packages::BasicBlobPackage

      pub struct BasicBlobPackage(/* private fields */);
      Expand description

      Package of basic BLOB utilities.

      Implementations§

      §

      impl BasicBlobPackage

      pub fn new() -> BasicBlobPackage

      Create a new BasicBlobPackage

      Trait Implementations§

      §

      impl Default for BasicBlobPackage

      §

      fn default() -> BasicBlobPackage

      Returns the “default value” for a type. Read more
      §

      impl Package for BasicBlobPackage

      §

      fn as_shared_module(&self) -> Arc<Module>

      Get a reference to a shared module from this package.
      §

      fn init(lib: &mut Module)

      Initialize the package. Functions should be registered into module here.
      §

      fn init_engine(_engine: &mut Engine)

      Initialize the package with an Engine. Read more
      §

      fn register_into_engine(&self, engine: &mut Engine) -> &Self

      Register the package with an Engine. Read more

      Auto Trait Implementations§

      Blanket Implementations§

      source§

      impl<T> Any for T
      where diff --git a/casbin/rhai/packages/struct.BasicFnPackage.html b/casbin/rhai/packages/struct.BasicFnPackage.html index b23c1be1..d02e8250 100644 --- a/casbin/rhai/packages/struct.BasicFnPackage.html +++ b/casbin/rhai/packages/struct.BasicFnPackage.html @@ -1,4 +1,4 @@ -BasicFnPackage in casbin::rhai::packages - Rust

      Struct casbin::rhai::packages::BasicFnPackage

      pub struct BasicFnPackage(/* private fields */);
      Expand description

      Package of basic function pointer utilities.

      +BasicFnPackage in casbin::rhai::packages - Rust

      Struct casbin::rhai::packages::BasicFnPackage

      pub struct BasicFnPackage(/* private fields */);
      Expand description

      Package of basic function pointer utilities.

      Implementations§

      §

      impl BasicFnPackage

      pub fn new() -> BasicFnPackage

      Create a new BasicFnPackage

      Trait Implementations§

      §

      impl Default for BasicFnPackage

      §

      fn default() -> BasicFnPackage

      Returns the “default value” for a type. Read more
      §

      impl Package for BasicFnPackage

      §

      fn as_shared_module(&self) -> Arc<Module>

      Get a reference to a shared module from this package.
      §

      fn init(lib: &mut Module)

      Initialize the package. Functions should be registered into module here.
      §

      fn init_engine(_engine: &mut Engine)

      Initialize the package with an Engine. Read more
      §

      fn register_into_engine(&self, engine: &mut Engine) -> &Self

      Register the package with an Engine. Read more

      Auto Trait Implementations§

      Blanket Implementations§

      source§

      impl<T> Any for T
      where diff --git a/casbin/rhai/packages/struct.BasicIteratorPackage.html b/casbin/rhai/packages/struct.BasicIteratorPackage.html index 4322c66e..88aebbfe 100644 --- a/casbin/rhai/packages/struct.BasicIteratorPackage.html +++ b/casbin/rhai/packages/struct.BasicIteratorPackage.html @@ -1,4 +1,4 @@ -BasicIteratorPackage in casbin::rhai::packages - Rust

      Struct casbin::rhai::packages::BasicIteratorPackage

      pub struct BasicIteratorPackage(/* private fields */);
      Expand description

      Package of basic range iterators

      +BasicIteratorPackage in casbin::rhai::packages - Rust

      Struct casbin::rhai::packages::BasicIteratorPackage

      pub struct BasicIteratorPackage(/* private fields */);
      Expand description

      Package of basic range iterators

      Implementations§

      §

      impl BasicIteratorPackage

      pub fn new() -> BasicIteratorPackage

      Create a new BasicIteratorPackage

      Trait Implementations§

      §

      impl Default for BasicIteratorPackage

      §

      fn default() -> BasicIteratorPackage

      Returns the “default value” for a type. Read more
      §

      impl Package for BasicIteratorPackage

      §

      fn as_shared_module(&self) -> Arc<Module>

      Get a reference to a shared module from this package.
      §

      fn init(lib: &mut Module)

      Initialize the package. Functions should be registered into module here.
      §

      fn init_engine(_engine: &mut Engine)

      Initialize the package with an Engine. Read more
      §

      fn register_into_engine(&self, engine: &mut Engine) -> &Self

      Register the package with an Engine. Read more

      Auto Trait Implementations§

      Blanket Implementations§

      source§

      impl<T> Any for T
      where diff --git a/casbin/rhai/packages/struct.BasicMapPackage.html b/casbin/rhai/packages/struct.BasicMapPackage.html index 7493dd16..22a86ac0 100644 --- a/casbin/rhai/packages/struct.BasicMapPackage.html +++ b/casbin/rhai/packages/struct.BasicMapPackage.html @@ -1,4 +1,4 @@ -BasicMapPackage in casbin::rhai::packages - Rust

      Struct casbin::rhai::packages::BasicMapPackage

      pub struct BasicMapPackage(/* private fields */);
      Expand description

      Package of basic object map utilities.

      +BasicMapPackage in casbin::rhai::packages - Rust

      Struct casbin::rhai::packages::BasicMapPackage

      pub struct BasicMapPackage(/* private fields */);
      Expand description

      Package of basic object map utilities.

      Implementations§

      §

      impl BasicMapPackage

      pub fn new() -> BasicMapPackage

      Create a new BasicMapPackage

      Trait Implementations§

      §

      impl Default for BasicMapPackage

      §

      fn default() -> BasicMapPackage

      Returns the “default value” for a type. Read more
      §

      impl Package for BasicMapPackage

      §

      fn as_shared_module(&self) -> Arc<Module>

      Get a reference to a shared module from this package.
      §

      fn init(lib: &mut Module)

      Initialize the package. Functions should be registered into module here.
      §

      fn init_engine(_engine: &mut Engine)

      Initialize the package with an Engine. Read more
      §

      fn register_into_engine(&self, engine: &mut Engine) -> &Self

      Register the package with an Engine. Read more

      Auto Trait Implementations§

      Blanket Implementations§

      source§

      impl<T> Any for T
      where diff --git a/casbin/rhai/packages/struct.BasicMathPackage.html b/casbin/rhai/packages/struct.BasicMathPackage.html index fb2c975a..122df644 100644 --- a/casbin/rhai/packages/struct.BasicMathPackage.html +++ b/casbin/rhai/packages/struct.BasicMathPackage.html @@ -1,4 +1,4 @@ -BasicMathPackage in casbin::rhai::packages - Rust

      Struct casbin::rhai::packages::BasicMathPackage

      pub struct BasicMathPackage(/* private fields */);
      Expand description

      Basic mathematical package.

      +BasicMathPackage in casbin::rhai::packages - Rust

      Struct casbin::rhai::packages::BasicMathPackage

      pub struct BasicMathPackage(/* private fields */);
      Expand description

      Basic mathematical package.

      Implementations§

      §

      impl BasicMathPackage

      pub fn new() -> BasicMathPackage

      Create a new BasicMathPackage

      Trait Implementations§

      §

      impl Default for BasicMathPackage

      §

      fn default() -> BasicMathPackage

      Returns the “default value” for a type. Read more
      §

      impl Package for BasicMathPackage

      §

      fn as_shared_module(&self) -> Arc<Module>

      Get a reference to a shared module from this package.
      §

      fn init(lib: &mut Module)

      Initialize the package. Functions should be registered into module here.
      §

      fn init_engine(_engine: &mut Engine)

      Initialize the package with an Engine. Read more
      §

      fn register_into_engine(&self, engine: &mut Engine) -> &Self

      Register the package with an Engine. Read more

      Auto Trait Implementations§

      Blanket Implementations§

      source§

      impl<T> Any for T
      where diff --git a/casbin/rhai/packages/struct.BasicStringPackage.html b/casbin/rhai/packages/struct.BasicStringPackage.html index e45a0411..ae332ca9 100644 --- a/casbin/rhai/packages/struct.BasicStringPackage.html +++ b/casbin/rhai/packages/struct.BasicStringPackage.html @@ -1,4 +1,4 @@ -BasicStringPackage in casbin::rhai::packages - Rust

      Struct casbin::rhai::packages::BasicStringPackage

      pub struct BasicStringPackage(/* private fields */);
      Expand description

      Package of basic string utilities (e.g. printing)

      +BasicStringPackage in casbin::rhai::packages - Rust

      Struct casbin::rhai::packages::BasicStringPackage

      pub struct BasicStringPackage(/* private fields */);
      Expand description

      Package of basic string utilities (e.g. printing)

      Implementations§

      §

      impl BasicStringPackage

      pub fn new() -> BasicStringPackage

      Create a new BasicStringPackage

      Trait Implementations§

      §

      impl Default for BasicStringPackage

      §

      fn default() -> BasicStringPackage

      Returns the “default value” for a type. Read more
      §

      impl Package for BasicStringPackage

      §

      fn as_shared_module(&self) -> Arc<Module>

      Get a reference to a shared module from this package.
      §

      fn init(lib: &mut Module)

      Initialize the package. Functions should be registered into module here.
      §

      fn init_engine(_engine: &mut Engine)

      Initialize the package with an Engine. Read more
      §

      fn register_into_engine(&self, engine: &mut Engine) -> &Self

      Register the package with an Engine. Read more

      Auto Trait Implementations§

      Blanket Implementations§

      source§

      impl<T> Any for T
      where diff --git a/casbin/rhai/packages/struct.BasicTimePackage.html b/casbin/rhai/packages/struct.BasicTimePackage.html index 29f890b2..7356b750 100644 --- a/casbin/rhai/packages/struct.BasicTimePackage.html +++ b/casbin/rhai/packages/struct.BasicTimePackage.html @@ -1,4 +1,4 @@ -BasicTimePackage in casbin::rhai::packages - Rust

      Struct casbin::rhai::packages::BasicTimePackage

      pub struct BasicTimePackage(/* private fields */);
      Expand description

      Package of basic timing utilities.

      +BasicTimePackage in casbin::rhai::packages - Rust

      Struct casbin::rhai::packages::BasicTimePackage

      pub struct BasicTimePackage(/* private fields */);
      Expand description

      Package of basic timing utilities.

      Implementations§

      §

      impl BasicTimePackage

      pub fn new() -> BasicTimePackage

      Create a new BasicTimePackage

      Trait Implementations§

      §

      impl Default for BasicTimePackage

      §

      fn default() -> BasicTimePackage

      Returns the “default value” for a type. Read more
      §

      impl Package for BasicTimePackage

      §

      fn as_shared_module(&self) -> Arc<Module>

      Get a reference to a shared module from this package.
      §

      fn init(lib: &mut Module)

      Initialize the package. Functions should be registered into module here.
      §

      fn init_engine(_engine: &mut Engine)

      Initialize the package with an Engine. Read more
      §

      fn register_into_engine(&self, engine: &mut Engine) -> &Self

      Register the package with an Engine. Read more

      Auto Trait Implementations§

      Blanket Implementations§

      source§

      impl<T> Any for T
      where diff --git a/casbin/rhai/packages/struct.BitFieldPackage.html b/casbin/rhai/packages/struct.BitFieldPackage.html index 7ec5b79b..ce842484 100644 --- a/casbin/rhai/packages/struct.BitFieldPackage.html +++ b/casbin/rhai/packages/struct.BitFieldPackage.html @@ -1,4 +1,4 @@ -BitFieldPackage in casbin::rhai::packages - Rust

      Struct casbin::rhai::packages::BitFieldPackage

      pub struct BitFieldPackage(/* private fields */);
      Expand description

      Package of basic bit-field utilities.

      +BitFieldPackage in casbin::rhai::packages - Rust

      Struct casbin::rhai::packages::BitFieldPackage

      pub struct BitFieldPackage(/* private fields */);
      Expand description

      Package of basic bit-field utilities.

      Implementations§

      §

      impl BitFieldPackage

      pub fn new() -> BitFieldPackage

      Create a new BitFieldPackage

      Trait Implementations§

      §

      impl Default for BitFieldPackage

      §

      fn default() -> BitFieldPackage

      Returns the “default value” for a type. Read more
      §

      impl Package for BitFieldPackage

      §

      fn as_shared_module(&self) -> Arc<Module>

      Get a reference to a shared module from this package.
      §

      fn init(lib: &mut Module)

      Initialize the package. Functions should be registered into module here.
      §

      fn init_engine(_engine: &mut Engine)

      Initialize the package with an Engine. Read more
      §

      fn register_into_engine(&self, engine: &mut Engine) -> &Self

      Register the package with an Engine. Read more

      Auto Trait Implementations§

      Blanket Implementations§

      source§

      impl<T> Any for T
      where diff --git a/casbin/rhai/packages/struct.CorePackage.html b/casbin/rhai/packages/struct.CorePackage.html index 06a15529..8f1f3c3a 100644 --- a/casbin/rhai/packages/struct.CorePackage.html +++ b/casbin/rhai/packages/struct.CorePackage.html @@ -1,4 +1,4 @@ -CorePackage in casbin::rhai::packages - Rust

      Struct casbin::rhai::packages::CorePackage

      pub struct CorePackage(/* private fields */);
      Expand description

      Core package containing basic facilities.

      +CorePackage in casbin::rhai::packages - Rust

      Struct casbin::rhai::packages::CorePackage

      pub struct CorePackage(/* private fields */);
      Expand description

      Core package containing basic facilities.

      §Contents

      • LanguageCorePackage
      • diff --git a/casbin/rhai/packages/struct.LanguageCorePackage.html b/casbin/rhai/packages/struct.LanguageCorePackage.html index 5331f951..e69649a8 100644 --- a/casbin/rhai/packages/struct.LanguageCorePackage.html +++ b/casbin/rhai/packages/struct.LanguageCorePackage.html @@ -1,4 +1,4 @@ -LanguageCorePackage in casbin::rhai::packages - Rust

        Struct casbin::rhai::packages::LanguageCorePackage

        pub struct LanguageCorePackage(/* private fields */);
        Expand description

        Package of core language features.

        +LanguageCorePackage in casbin::rhai::packages - Rust

        Struct casbin::rhai::packages::LanguageCorePackage

        pub struct LanguageCorePackage(/* private fields */);
        Expand description

        Package of core language features.

        Implementations§

        §

        impl LanguageCorePackage

        pub fn new() -> LanguageCorePackage

        Create a new LanguageCorePackage

        Trait Implementations§

        §

        impl Default for LanguageCorePackage

        §

        fn default() -> LanguageCorePackage

        Returns the “default value” for a type. Read more
        §

        impl Package for LanguageCorePackage

        §

        fn as_shared_module(&self) -> Arc<Module>

        Get a reference to a shared module from this package.
        §

        fn init(lib: &mut Module)

        Initialize the package. Functions should be registered into module here.
        §

        fn init_engine(_engine: &mut Engine)

        Initialize the package with an Engine. Read more
        §

        fn register_into_engine(&self, engine: &mut Engine) -> &Self

        Register the package with an Engine. Read more

        Auto Trait Implementations§

        Blanket Implementations§

        source§

        impl<T> Any for T
        where diff --git a/casbin/rhai/packages/struct.LogicPackage.html b/casbin/rhai/packages/struct.LogicPackage.html index 7919a26f..bcbb9e1e 100644 --- a/casbin/rhai/packages/struct.LogicPackage.html +++ b/casbin/rhai/packages/struct.LogicPackage.html @@ -1,4 +1,4 @@ -LogicPackage in casbin::rhai::packages - Rust

        Struct casbin::rhai::packages::LogicPackage

        pub struct LogicPackage(/* private fields */);
        Expand description

        Package of basic logic operators.

        +LogicPackage in casbin::rhai::packages - Rust

        Struct casbin::rhai::packages::LogicPackage

        pub struct LogicPackage(/* private fields */);
        Expand description

        Package of basic logic operators.

        Implementations§

        §

        impl LogicPackage

        pub fn new() -> LogicPackage

        Create a new LogicPackage

        Trait Implementations§

        §

        impl Default for LogicPackage

        §

        fn default() -> LogicPackage

        Returns the “default value” for a type. Read more
        §

        impl Package for LogicPackage

        §

        fn as_shared_module(&self) -> Arc<Module>

        Get a reference to a shared module from this package.
        §

        fn init(lib: &mut Module)

        Initialize the package. Functions should be registered into module here.
        §

        fn init_engine(_engine: &mut Engine)

        Initialize the package with an Engine. Read more
        §

        fn register_into_engine(&self, engine: &mut Engine) -> &Self

        Register the package with an Engine. Read more

        Auto Trait Implementations§

        Blanket Implementations§

        source§

        impl<T> Any for T
        where diff --git a/casbin/rhai/packages/struct.MoreStringPackage.html b/casbin/rhai/packages/struct.MoreStringPackage.html index eefa0d91..d816fbde 100644 --- a/casbin/rhai/packages/struct.MoreStringPackage.html +++ b/casbin/rhai/packages/struct.MoreStringPackage.html @@ -1,4 +1,4 @@ -MoreStringPackage in casbin::rhai::packages - Rust

        Struct casbin::rhai::packages::MoreStringPackage

        pub struct MoreStringPackage(/* private fields */);
        Expand description

        Package of additional string utilities over BasicStringPackage

        +MoreStringPackage in casbin::rhai::packages - Rust

        Struct casbin::rhai::packages::MoreStringPackage

        pub struct MoreStringPackage(/* private fields */);
        Expand description

        Package of additional string utilities over BasicStringPackage

        Implementations§

        §

        impl MoreStringPackage

        pub fn new() -> MoreStringPackage

        Create a new MoreStringPackage

        Trait Implementations§

        §

        impl Default for MoreStringPackage

        §

        fn default() -> MoreStringPackage

        Returns the “default value” for a type. Read more
        §

        impl Package for MoreStringPackage

        §

        fn as_shared_module(&self) -> Arc<Module>

        Get a reference to a shared module from this package.
        §

        fn init(lib: &mut Module)

        Initialize the package. Functions should be registered into module here.
        §

        fn init_engine(_engine: &mut Engine)

        Initialize the package with an Engine. Read more
        §

        fn register_into_engine(&self, engine: &mut Engine) -> &Self

        Register the package with an Engine. Read more

        Auto Trait Implementations§

        Blanket Implementations§

        source§

        impl<T> Any for T
        where diff --git a/casbin/rhai/packages/struct.StandardPackage.html b/casbin/rhai/packages/struct.StandardPackage.html index c1d599ed..fdbf9f00 100644 --- a/casbin/rhai/packages/struct.StandardPackage.html +++ b/casbin/rhai/packages/struct.StandardPackage.html @@ -1,4 +1,4 @@ -StandardPackage in casbin::rhai::packages - Rust

        Struct casbin::rhai::packages::StandardPackage

        pub struct StandardPackage(/* private fields */);
        Expand description

        Standard package containing all built-in features.

        +StandardPackage in casbin::rhai::packages - Rust

        Struct casbin::rhai::packages::StandardPackage

        pub struct StandardPackage(/* private fields */);
        Expand description

        Standard package containing all built-in features.

        §Contents

        §

        fn partial_cmp(&self, other: &S) -> Option<Ordering>

        This method returns an ordering between self and other values if one exists. Read more
        1.0.0 · source§

        fn lt(&self, other: &Rhs) -> bool

        This method tests less than (for self and other) and is used by the < operator. Read more
        1.0.0 · source§

        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 more
        1.0.0 · source§

        fn gt(&self, other: &Rhs) -> bool

        This method tests greater than (for self and other) and is used by the > operator. Read more
        1.0.0 · source§

        fn ge(&self, other: &Rhs) -> bool

        This method tests greater than or equal to (for self and other) and is used by the >= +operator. Read more
        §

        impl PartialOrd<String> for &ImmutableString

        §

        fn partial_cmp(&self, other: &String) -> Option<Ordering>

        This method returns an ordering between self and other values if one exists. Read more
        1.0.0 · source§

        fn lt(&self, other: &Rhs) -> bool

        This method tests less than (for self and other) and is used by the < operator. Read more
        1.0.0 · source§

        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 more
        1.0.0 · source§

        fn gt(&self, other: &Rhs) -> bool

        This method tests greater than (for self and other) and is used by the > operator. Read more
        1.0.0 · source§

        fn ge(&self, other: &Rhs) -> bool

        This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
        §

        impl PartialOrd<String> for &ImmutableString

        §

        fn partial_cmp(&self, other: &String) -> Option<Ordering>

        This method returns an ordering between self and other values if one exists. Read more
        1.0.0 · source§

        fn lt(&self, other: &Rhs) -> bool

        This method tests less than (for self and other) and is used by the < operator. Read more
        1.0.0 · source§

        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 more
        1.0.0 · source§

        fn gt(&self, other: &Rhs) -> bool

        This method tests greater than (for self and other) and is used by the > operator. Read more
        1.0.0 · source§

        fn ge(&self, other: &Rhs) -> bool

        This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
        §

        impl PartialOrd<str> for &ImmutableString

        §

        fn partial_cmp(&self, other: &str) -> Option<Ordering>

        This method returns an ordering between self and other values if one exists. Read more
        1.0.0 · source§

        fn lt(&self, other: &Rhs) -> bool

        This method tests less than (for self and other) and is used by the < operator. Read more
        1.0.0 · source§

        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 more
        1.0.0 · source§

        fn gt(&self, other: &Rhs) -> bool

        This method tests greater than (for self and other) and is used by the > operator. Read more
        1.0.0 · source§

        fn ge(&self, other: &Rhs) -> bool

        This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
        §

        impl Serialize for ImmutableString

        §

        fn serialize<S>( &self, ser: S, ) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
        where - S: Serializer,

        Serialize this value into the given Serde serializer. Read more
        §

        impl Sub<&str> for &ImmutableString

        §

        type Output = ImmutableString

        The resulting type after applying the - operator.
        §

        fn sub(self, rhs: &str) -> <&ImmutableString as Sub<&str>>::Output

        Performs the - operation. Read more
        §

        impl Sub<&str> for ImmutableString

        §

        type Output = ImmutableString

        The resulting type after applying the - operator.
        §

        fn sub(self, rhs: &str) -> <ImmutableString as Sub<&str>>::Output

        Performs the - operation. Read more
        §

        impl Sub<String> for &ImmutableString

        §

        type Output = ImmutableString

        The resulting type after applying the - operator.
        §

        fn sub(self, rhs: String) -> <&ImmutableString as Sub<String>>::Output

        Performs the - operation. Read more
        §

        impl Sub<String> for ImmutableString

        §

        type Output = ImmutableString

        The resulting type after applying the - operator.
        §

        fn sub(self, rhs: String) -> <ImmutableString as Sub<String>>::Output

        Performs the - operation. Read more
        §

        impl Sub<char> for &ImmutableString

        §

        type Output = ImmutableString

        The resulting type after applying the - operator.
        §

        fn sub(self, rhs: char) -> <&ImmutableString as Sub<char>>::Output

        Performs the - operation. Read more
        §

        impl Sub<char> for ImmutableString

        §

        type Output = ImmutableString

        The resulting type after applying the - operator.
        §

        fn sub(self, rhs: char) -> <ImmutableString as Sub<char>>::Output

        Performs the - operation. Read more
        §

        impl Sub for &ImmutableString

        §

        type Output = ImmutableString

        The resulting type after applying the - operator.
        §

        fn sub(self, rhs: &ImmutableString) -> <&ImmutableString as Sub>::Output

        Performs the - operation. Read more
        §

        impl Sub for ImmutableString

        §

        type Output = ImmutableString

        The resulting type after applying the - operator.
        §

        fn sub(self, rhs: ImmutableString) -> <ImmutableString as Sub>::Output

        Performs the - operation. Read more
        §

        impl SubAssign<&ImmutableString> for ImmutableString

        §

        fn sub_assign(&mut self, rhs: &ImmutableString)

        Performs the -= operation. Read more
        §

        impl SubAssign<&str> for ImmutableString

        §

        fn sub_assign(&mut self, rhs: &str)

        Performs the -= operation. Read more
        §

        impl SubAssign<String> for ImmutableString

        §

        fn sub_assign(&mut self, rhs: String)

        Performs the -= operation. Read more
        §

        impl SubAssign<char> for ImmutableString

        §

        fn sub_assign(&mut self, rhs: char)

        Performs the -= operation. Read more
        §

        impl SubAssign for ImmutableString

        §

        fn sub_assign(&mut self, rhs: ImmutableString)

        Performs the -= operation. Read more
        §

        impl TryFrom<ImmutableString> for FnPtr

        §

        type Error = Box<EvalAltResult>

        The type returned in the event of a conversion error.
        §

        fn try_from(value: ImmutableString) -> Result<FnPtr, Box<EvalAltResult>>

        Performs the conversion.
        §

        impl Eq for ImmutableString

        Auto Trait Implementations§

        Blanket Implementations§

        source§

        impl<T> Any for T
        where + S: Serializer,

        Serialize this value into the given Serde serializer. Read more
        §

        impl Sub<&str> for &ImmutableString

        §

        type Output = ImmutableString

        The resulting type after applying the - operator.
        §

        fn sub(self, rhs: &str) -> <&ImmutableString as Sub<&str>>::Output

        Performs the - operation. Read more
        §

        impl Sub<&str> for ImmutableString

        §

        type Output = ImmutableString

        The resulting type after applying the - operator.
        §

        fn sub(self, rhs: &str) -> <ImmutableString as Sub<&str>>::Output

        Performs the - operation. Read more
        §

        impl Sub<String> for &ImmutableString

        §

        type Output = ImmutableString

        The resulting type after applying the - operator.
        §

        fn sub(self, rhs: String) -> <&ImmutableString as Sub<String>>::Output

        Performs the - operation. Read more
        §

        impl Sub<String> for ImmutableString

        §

        type Output = ImmutableString

        The resulting type after applying the - operator.
        §

        fn sub(self, rhs: String) -> <ImmutableString as Sub<String>>::Output

        Performs the - operation. Read more
        §

        impl Sub<char> for &ImmutableString

        §

        type Output = ImmutableString

        The resulting type after applying the - operator.
        §

        fn sub(self, rhs: char) -> <&ImmutableString as Sub<char>>::Output

        Performs the - operation. Read more
        §

        impl Sub<char> for ImmutableString

        §

        type Output = ImmutableString

        The resulting type after applying the - operator.
        §

        fn sub(self, rhs: char) -> <ImmutableString as Sub<char>>::Output

        Performs the - operation. Read more
        §

        impl Sub for &ImmutableString

        §

        type Output = ImmutableString

        The resulting type after applying the - operator.
        §

        fn sub(self, rhs: &ImmutableString) -> <&ImmutableString as Sub>::Output

        Performs the - operation. Read more
        §

        impl Sub for ImmutableString

        §

        type Output = ImmutableString

        The resulting type after applying the - operator.
        §

        fn sub(self, rhs: ImmutableString) -> <ImmutableString as Sub>::Output

        Performs the - operation. Read more
        §

        impl SubAssign<&ImmutableString> for ImmutableString

        §

        fn sub_assign(&mut self, rhs: &ImmutableString)

        Performs the -= operation. Read more
        §

        impl SubAssign<&str> for ImmutableString

        §

        fn sub_assign(&mut self, rhs: &str)

        Performs the -= operation. Read more
        §

        impl SubAssign<String> for ImmutableString

        §

        fn sub_assign(&mut self, rhs: String)

        Performs the -= operation. Read more
        §

        impl SubAssign<char> for ImmutableString

        §

        fn sub_assign(&mut self, rhs: char)

        Performs the -= operation. Read more
        §

        impl SubAssign for ImmutableString

        §

        fn sub_assign(&mut self, rhs: ImmutableString)

        Performs the -= operation. Read more
        §

        impl TryFrom<ImmutableString> for FnPtr

        §

        type Error = Box<EvalAltResult>

        The type returned in the event of a conversion error.
        §

        fn try_from(value: ImmutableString) -> Result<FnPtr, Box<EvalAltResult>>

        Performs the conversion.
        §

        impl Eq for ImmutableString

        Auto Trait Implementations§

        Blanket Implementations§

        source§

        impl<T> Any for T
        where T: 'static + ?Sized,

        source§

        fn type_id(&self) -> TypeId

        Gets the TypeId of self. Read more
        source§

        impl<T> Borrow<T> for T
        where T: ?Sized,

        source§

        fn borrow(&self) -> &T

        Immutably borrows from an owned value. Read more
        source§

        impl<T> BorrowMut<T> for T
        where T: ?Sized,

        source§

        fn borrow_mut(&mut self) -> &mut T

        Mutably borrows from an owned value. Read more
        source§

        impl<T> CloneToUninit for T
        where diff --git a/casbin/rhai/plugin/struct.Module.html b/casbin/rhai/plugin/struct.Module.html index ba580584..1e314aa1 100644 --- a/casbin/rhai/plugin/struct.Module.html +++ b/casbin/rhai/plugin/struct.Module.html @@ -1,4 +1,4 @@ -Module in casbin::rhai::plugin - Rust

        Struct casbin::rhai::plugin::Module

        pub struct Module { /* private fields */ }
        Expand description

        A module which may contain variables, sub-modules, external Rust functions, +Module in casbin::rhai::plugin - Rust

        Struct casbin::rhai::plugin::Module

        pub struct Module { /* private fields */ }
        Expand description

        A module which may contain variables, sub-modules, external Rust functions, and/or script-defined functions.

        Implementations§

        §

        impl Module

        pub const fn with_capacity(_capacity: usize) -> Module

        👎Deprecated since 1.12.0: use new instead

        Create a new Module with a pre-sized capacity for functions.

        §Deprecated
        diff --git a/casbin/rhai/plugin/struct.NativeCallContext.html b/casbin/rhai/plugin/struct.NativeCallContext.html index 665f40e6..e92fefbe 100644 --- a/casbin/rhai/plugin/struct.NativeCallContext.html +++ b/casbin/rhai/plugin/struct.NativeCallContext.html @@ -1,4 +1,4 @@ -NativeCallContext in casbin::rhai::plugin - Rust

        Struct casbin::rhai::plugin::NativeCallContext

        pub struct NativeCallContext<'a> { /* private fields */ }
        Expand description

        Context of a native Rust function call.

        +NativeCallContext in casbin::rhai::plugin - Rust

        Struct casbin::rhai::plugin::NativeCallContext

        pub struct NativeCallContext<'a> { /* private fields */ }
        Expand description

        Context of a native Rust function call.

        Implementations§

        §

        impl NativeCallContext<'_>

        pub fn new( engine: &Engine, fn_name: &str, diff --git a/casbin/rhai/plugin/struct.Position.html b/casbin/rhai/plugin/struct.Position.html index 3ec8368f..fc542fff 100644 --- a/casbin/rhai/plugin/struct.Position.html +++ b/casbin/rhai/plugin/struct.Position.html @@ -1,4 +1,4 @@ -Position in casbin::rhai::plugin - Rust

        Struct casbin::rhai::plugin::Position

        pub struct Position { /* private fields */ }
        Expand description

        A location (line number + character position) in the input script.

        +Position in casbin::rhai::plugin - Rust

        Struct casbin::rhai::plugin::Position

        pub struct Position { /* private fields */ }
        Expand description

        A location (line number + character position) in the input script.

        §Limitations

        In order to keep footprint small, both line number and character position have 16-bit resolution, meaning they go up to a maximum of 65,535 lines and 65,535 characters per line.

        diff --git a/casbin/rhai/plugin/struct.TypeId.html b/casbin/rhai/plugin/struct.TypeId.html index df51fae9..5c880451 100644 --- a/casbin/rhai/plugin/struct.TypeId.html +++ b/casbin/rhai/plugin/struct.TypeId.html @@ -1,4 +1,4 @@ -TypeId in casbin::rhai::plugin - Rust

        Struct casbin::rhai::plugin::TypeId

        1.0.0 · source ·
        pub struct TypeId { /* private fields */ }
        Expand description

        A TypeId represents a globally unique identifier for a type.

        +TypeId in casbin::rhai::plugin - Rust

        Struct casbin::rhai::plugin::TypeId

        1.0.0 · source ·
        pub struct TypeId { /* private fields */ }
        Expand description

        A TypeId represents a globally unique identifier for a type.

        Each TypeId is an opaque object which does not allow inspection of what’s inside but does allow basic operations such as cloning, comparison, printing, and showing.

        diff --git a/casbin/rhai/plugin/trait.PluginFunc.html b/casbin/rhai/plugin/trait.PluginFunc.html index d64cc785..646501ac 100644 --- a/casbin/rhai/plugin/trait.PluginFunc.html +++ b/casbin/rhai/plugin/trait.PluginFunc.html @@ -1,4 +1,4 @@ -PluginFunc in casbin::rhai::plugin - Rust

        Trait casbin::rhai::plugin::PluginFunc

        pub trait PluginFunc {
        +PluginFunc in casbin::rhai::plugin - Rust

        Trait casbin::rhai::plugin::PluginFunc

        pub trait PluginFunc {
             // Required methods
             fn call(
                 &self,
        diff --git a/casbin/rhai/plugin/type.RhaiResult.html b/casbin/rhai/plugin/type.RhaiResult.html
        index 8ba488ea..4d40765c 100644
        --- a/casbin/rhai/plugin/type.RhaiResult.html
        +++ b/casbin/rhai/plugin/type.RhaiResult.html
        @@ -1,4 +1,4 @@
        -RhaiResult in casbin::rhai::plugin - Rust

        Type Alias casbin::rhai::plugin::RhaiResult

        pub type RhaiResult = Result<Dynamic, Box<EvalAltResult>>;
        Expand description

        Result of a Rhai function.

        +RhaiResult in casbin::rhai::plugin - Rust

        Type Alias casbin::rhai::plugin::RhaiResult

        pub type RhaiResult = Result<Dynamic, Box<EvalAltResult>>;
        Expand description

        Result of a Rhai function.

        Aliased Type§

        enum RhaiResult {
             Ok(Dynamic),
             Err(Box<EvalAltResult>),
        diff --git a/casbin/rhai/serde/fn.from_dynamic.html b/casbin/rhai/serde/fn.from_dynamic.html
        index 482f72f7..57e20697 100644
        --- a/casbin/rhai/serde/fn.from_dynamic.html
        +++ b/casbin/rhai/serde/fn.from_dynamic.html
        @@ -1,4 +1,4 @@
        -from_dynamic in casbin::rhai::serde - Rust

        Function casbin::rhai::serde::from_dynamic

        pub fn from_dynamic<'de, T>(
        +from_dynamic in casbin::rhai::serde - Rust

        Function casbin::rhai::serde::from_dynamic

        pub fn from_dynamic<'de, T>(
             value: &'de Dynamic,
         ) -> Result<T, Box<EvalAltResult>>
        where T: Deserialize<'de>,
        Expand description

        Deserialize a Dynamic value into a Rust type that implements serde::Deserialize.

        diff --git a/casbin/rhai/serde/fn.to_dynamic.html b/casbin/rhai/serde/fn.to_dynamic.html index 54778e55..2d6e5054 100644 --- a/casbin/rhai/serde/fn.to_dynamic.html +++ b/casbin/rhai/serde/fn.to_dynamic.html @@ -1,4 +1,4 @@ -to_dynamic in casbin::rhai::serde - Rust

        Function casbin::rhai::serde::to_dynamic

        pub fn to_dynamic<T>(value: T) -> Result<Dynamic, Box<EvalAltResult>>
        where +to_dynamic in casbin::rhai::serde - Rust

        Function casbin::rhai::serde::to_dynamic

        pub fn to_dynamic<T>(value: T) -> Result<Dynamic, Box<EvalAltResult>>
        where T: Serialize,
        Expand description

        Serialize a Rust type that implements serde::Serialize into a Dynamic.

        §Example

        use rhai::{Dynamic, Array, Map};
        diff --git a/casbin/rhai/serde/index.html b/casbin/rhai/serde/index.html
        index 496a1354..e746b95d 100644
        --- a/casbin/rhai/serde/index.html
        +++ b/casbin/rhai/serde/index.html
        @@ -1,3 +1,3 @@
        -casbin::rhai::serde - Rust

        Module casbin::rhai::serde

        Expand description

        (serde) Serialization and deserialization support for serde. +casbin::rhai::serde - Rust

        Module casbin::rhai::serde

        Expand description

        (serde) Serialization and deserialization support for serde. Exported under the serde feature only.

        Structs§

        Functions§

        \ No newline at end of file diff --git a/casbin/rhai/serde/struct.DynamicDeserializer.html b/casbin/rhai/serde/struct.DynamicDeserializer.html index d3fc27ff..8f7b272c 100644 --- a/casbin/rhai/serde/struct.DynamicDeserializer.html +++ b/casbin/rhai/serde/struct.DynamicDeserializer.html @@ -1,4 +1,4 @@ -DynamicDeserializer in casbin::rhai::serde - Rust

        Struct casbin::rhai::serde::DynamicDeserializer

        pub struct DynamicDeserializer<'de>(/* private fields */);
        Expand description

        Deserializer for Dynamic.

        +DynamicDeserializer in casbin::rhai::serde - Rust

        Struct casbin::rhai::serde::DynamicDeserializer

        pub struct DynamicDeserializer<'de>(/* private fields */);
        Expand description

        Deserializer for Dynamic.

        Implementations§

        §

        impl<'de> DynamicDeserializer<'de>

        pub const fn new(value: &'de Dynamic) -> DynamicDeserializer<'de>

        Create a DynamicDeserializer from a reference to a Dynamic value.

        The reference is necessary because the deserialized type may hold references (especially &str) to the source Dynamic.

        diff --git a/casbin/rhai/serde/struct.DynamicSerializer.html b/casbin/rhai/serde/struct.DynamicSerializer.html index d31d5020..5e1d7b30 100644 --- a/casbin/rhai/serde/struct.DynamicSerializer.html +++ b/casbin/rhai/serde/struct.DynamicSerializer.html @@ -1,4 +1,4 @@ -DynamicSerializer in casbin::rhai::serde - Rust

        Struct casbin::rhai::serde::DynamicSerializer

        pub struct DynamicSerializer { /* private fields */ }
        Expand description

        Serializer for Dynamic.

        +DynamicSerializer in casbin::rhai::serde - Rust

        Struct casbin::rhai::serde::DynamicSerializer

        pub struct DynamicSerializer { /* private fields */ }
        Expand description

        Serializer for Dynamic.

        Implementations§

        §

        impl DynamicSerializer

        pub const fn new(value: Dynamic) -> DynamicSerializer

        Create a DynamicSerializer from a Dynamic value.

        Trait Implementations§

        §

        impl SerializeMap for DynamicSerializer

        §

        type Ok = Dynamic

        Must match the Ok type of our Serializer.
        §

        type Error = Box<EvalAltResult>

        Must match the Error type of our Serializer.
        §

        fn serialize_key<T>(&mut self, _key: &T) -> Result<(), Box<EvalAltResult>>
        where T: Serialize + ?Sized,

        Serialize a map key. Read more
        §

        fn serialize_value<T>(&mut self, _value: &T) -> Result<(), Box<EvalAltResult>>
        where diff --git a/casbin/rhai/struct.AST.html b/casbin/rhai/struct.AST.html index aecdcdf9..d9c95f14 100644 --- a/casbin/rhai/struct.AST.html +++ b/casbin/rhai/struct.AST.html @@ -1,4 +1,4 @@ -AST in casbin::rhai - Rust

        Struct casbin::rhai::AST

        pub struct AST { /* private fields */ }
        Expand description

        Compiled AST (abstract syntax tree) of a Rhai script.

        +AST in casbin::rhai - Rust

        Struct casbin::rhai::AST

        pub struct AST { /* private fields */ }
        Expand description

        Compiled AST (abstract syntax tree) of a Rhai script.

        §Thread Safety

        Currently, AST is neither Send nor Sync. Turn on the sync feature to make it Send + Sync.

        Implementations§

        §

        impl AST

        pub fn empty() -> AST

        Create an empty AST.

        diff --git a/casbin/rhai/struct.Dynamic.html b/casbin/rhai/struct.Dynamic.html index 4a8697b5..9931db6b 100644 --- a/casbin/rhai/struct.Dynamic.html +++ b/casbin/rhai/struct.Dynamic.html @@ -1,4 +1,4 @@ -Dynamic in casbin::rhai - Rust

        Struct casbin::rhai::Dynamic

        pub struct Dynamic(/* private fields */);
        Expand description

        Dynamic type containing any value.

        +Dynamic in casbin::rhai - Rust

        Struct casbin::rhai::Dynamic

        pub struct Dynamic(/* private fields */);
        Expand description

        Dynamic type containing any value.

        Implementations§

        §

        impl Dynamic

        pub fn as_string(self) -> Result<String, &'static str>

        👎Deprecated since 1.1.0: use into_string instead

        Convert the Dynamic into a String and return it. If there are other references to the same string, a cloned copy is returned. Returns the name of the actual type if the cast fails.

        @@ -372,15 +372,15 @@
        §WARNING
        ) -> Result<Dynamic, <D as Deserializer<'de>>::Error>
        where D: Deserializer<'de>,

        Deserialize this value from the given Serde deserializer. Read more
        §

        impl Display for Dynamic

        §

        fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

        Formats the value using the given formatter. Read more
        §

        impl Extend<Dynamic> for FnPtr

        §

        fn extend<T>(&mut self, iter: T)
        where T: IntoIterator<Item = Dynamic>,

        Extends a collection with the contents of an iterator. Read more
        source§

        fn extend_one(&mut self, item: A)

        🔬This is a nightly-only experimental API. (extend_one)
        Extends a collection with exactly one element.
        source§

        fn extend_reserve(&mut self, additional: usize)

        🔬This is a nightly-only experimental API. (extend_one)
        Reserves capacity in a collection for the given number of additional elements. Read more
        §

        impl<T> From<&[T]> for Dynamic
        where - T: Variant + Clone,

        §

        fn from(value: &[T]) -> Dynamic

        Converts to this type from the input type.
        §

        impl From<()> for Dynamic

        §

        fn from(value: ()) -> Dynamic

        Converts to this type from the input type.
        §

        impl<K, T> From<BTreeMap<K, T>> for Dynamic
        where + T: Variant + Clone,

        §

        fn from(value: &[T]) -> Dynamic

        Converts to this type from the input type.
        §

        impl From<()> for Dynamic

        §

        fn from(value: ()) -> Dynamic

        Converts to this type from the input type.
        §

        impl<K, T> From<BTreeMap<K, T>> for Dynamic
        where K: Into<SmartString<LazyCompact>>, - T: Variant + Clone,

        §

        fn from(value: BTreeMap<K, T>) -> Dynamic

        Converts to this type from the input type.
        §

        impl<K> From<BTreeSet<K>> for Dynamic
        where - K: Into<SmartString<LazyCompact>>,

        §

        fn from(value: BTreeSet<K>) -> Dynamic

        Converts to this type from the input type.
        §

        impl From<FnPtr> for Dynamic

        §

        fn from(value: FnPtr) -> Dynamic

        Converts to this type from the input type.
        §

        impl<K, T> From<HashMap<K, T>> for Dynamic
        where + T: Variant + Clone,

        §

        fn from(value: BTreeMap<K, T>) -> Dynamic

        Converts to this type from the input type.
        §

        impl<K> From<BTreeSet<K>> for Dynamic
        where + K: Into<SmartString<LazyCompact>>,

        §

        fn from(value: BTreeSet<K>) -> Dynamic

        Converts to this type from the input type.
        §

        impl From<FnPtr> for Dynamic

        §

        fn from(value: FnPtr) -> Dynamic

        Converts to this type from the input type.
        §

        impl<K, T> From<HashMap<K, T>> for Dynamic
        where K: Into<SmartString<LazyCompact>>, - T: Variant + Clone,

        §

        fn from(value: HashMap<K, T>) -> Dynamic

        Converts to this type from the input type.
        §

        impl<K> From<HashSet<K>> for Dynamic
        where - K: Into<SmartString<LazyCompact>>,

        §

        fn from(value: HashSet<K>) -> Dynamic

        Converts to this type from the input type.
        §

        impl From<Instant> for Dynamic

        §

        fn from(value: Instant) -> Dynamic

        Converts to this type from the input type.
        §

        impl From<Range<i32>> for Dynamic

        §

        fn from(value: Range<i32>) -> Dynamic

        Converts to this type from the input type.
        §

        impl From<RangeInclusive<i32>> for Dynamic

        §

        fn from(value: RangeInclusive<i32>) -> Dynamic

        Converts to this type from the input type.
        §

        impl<S> From<S> for Dynamic
        where + T: Variant + Clone,

        §

        fn from(value: HashMap<K, T>) -> Dynamic

        Converts to this type from the input type.
        §

        impl<K> From<HashSet<K>> for Dynamic
        where + K: Into<SmartString<LazyCompact>>,

        §

        fn from(value: HashSet<K>) -> Dynamic

        Converts to this type from the input type.
        §

        impl From<Instant> for Dynamic

        §

        fn from(value: Instant) -> Dynamic

        Converts to this type from the input type.
        §

        impl From<Range<i32>> for Dynamic

        §

        fn from(value: Range<i32>) -> Dynamic

        Converts to this type from the input type.
        §

        impl From<RangeInclusive<i32>> for Dynamic

        §

        fn from(value: RangeInclusive<i32>) -> Dynamic

        Converts to this type from the input type.
        §

        impl<S> From<S> for Dynamic

        §

        fn from(value: S) -> Dynamic

        Converts to this type from the input type.
        §

        impl<T> From<Vec<T>> for Dynamic
        where - T: Variant + Clone,

        §

        fn from(value: Vec<T>) -> Dynamic

        Converts to this type from the input type.
        §

        impl From<bool> for Dynamic

        §

        fn from(value: bool) -> Dynamic

        Converts to this type from the input type.
        §

        impl From<char> for Dynamic

        §

        fn from(value: char) -> Dynamic

        Converts to this type from the input type.
        §

        impl From<i32> for Dynamic

        §

        fn from(value: i32) -> Dynamic

        Converts to this type from the input type.
        §

        impl<T> FromIterator<T> for Dynamic
        where + T: Variant + Clone,

        §

        fn from(value: Vec<T>) -> Dynamic

        Converts to this type from the input type.
        §

        impl From<bool> for Dynamic

        §

        fn from(value: bool) -> Dynamic

        Converts to this type from the input type.
        §

        impl From<char> for Dynamic

        §

        fn from(value: char) -> Dynamic

        Converts to this type from the input type.
        §

        impl From<i32> for Dynamic

        §

        fn from(value: i32) -> Dynamic

        Converts to this type from the input type.
        §

        impl<T> FromIterator<T> for Dynamic
        where T: Variant + Clone,

        §

        fn from_iter<X>(iter: X) -> Dynamic
        where X: IntoIterator<Item = T>,

        Creates a value from an iterator. Read more
        §

        impl FromStr for Dynamic

        §

        type Err = ()

        The associated error which can be returned from parsing.
        §

        fn from_str(value: &str) -> Result<Dynamic, <Dynamic as FromStr>::Err>

        Parses a string s to return a value of this type. Read more
        §

        impl Hash for Dynamic

        §

        fn hash<H>(&self, state: &mut H)
        where H: Hasher,

        Hash the Dynamic value.

        diff --git a/casbin/rhai/struct.Engine.html b/casbin/rhai/struct.Engine.html index b695782b..2ff35a2f 100644 --- a/casbin/rhai/struct.Engine.html +++ b/casbin/rhai/struct.Engine.html @@ -1,4 +1,4 @@ -Engine in casbin::rhai - Rust

        Struct casbin::rhai::Engine

        pub struct Engine { /* private fields */ }
        Expand description

        Rhai main scripting engine.

        +Engine in casbin::rhai - Rust

        Struct casbin::rhai::Engine

        pub struct Engine { /* private fields */ }
        Expand description

        Rhai main scripting engine.

        §Thread Safety

        Engine is re-entrant.

        Currently, Engine is neither Send nor Sync. diff --git a/casbin/rhai/struct.EvalContext.html b/casbin/rhai/struct.EvalContext.html index fe8644a8..b832cff1 100644 --- a/casbin/rhai/struct.EvalContext.html +++ b/casbin/rhai/struct.EvalContext.html @@ -1,4 +1,4 @@ -EvalContext in casbin::rhai - Rust

        Struct casbin::rhai::EvalContext

        pub struct EvalContext<'a, 's, 'ps, 'g, 'c, 't> { /* private fields */ }
        Expand description

        Context of a script evaluation process.

        +EvalContext in casbin::rhai - Rust

        Struct casbin::rhai::EvalContext

        pub struct EvalContext<'a, 's, 'ps, 'g, 'c, 't> { /* private fields */ }
        Expand description

        Context of a script evaluation process.

        Implementations§

        §

        impl<'a, 's, 'ps, 'g, 'c, 't> EvalContext<'a, 's, 'ps, 'g, 'c, 't>

        pub const fn engine(&self) -> &'a Engine

        The current Engine.

        pub fn source(&self) -> Option<&str>

        The current source.

        pub const fn scope(&self) -> &Scope<'ps>

        The current Scope.

        diff --git a/casbin/rhai/struct.Expression.html b/casbin/rhai/struct.Expression.html index da946299..81083f01 100644 --- a/casbin/rhai/struct.Expression.html +++ b/casbin/rhai/struct.Expression.html @@ -1,4 +1,4 @@ -Expression in casbin::rhai - Rust

        Struct casbin::rhai::Expression

        pub struct Expression<'a>(/* private fields */);
        Expand description

        An expression sub-tree in an AST.

        +Expression in casbin::rhai - Rust

        Struct casbin::rhai::Expression

        pub struct Expression<'a>(/* private fields */);
        Expand description

        An expression sub-tree in an AST.

        Implementations§

        §

        impl Expression<'_>

        pub fn eval_with_context( &self, context: &mut EvalContext<'_, '_, '_, '_, '_, '_>, diff --git a/casbin/rhai/struct.FnPtr.html b/casbin/rhai/struct.FnPtr.html index 4a7e7247..da76be71 100644 --- a/casbin/rhai/struct.FnPtr.html +++ b/casbin/rhai/struct.FnPtr.html @@ -1,4 +1,4 @@ -FnPtr in casbin::rhai - Rust

        Struct casbin::rhai::FnPtr

        pub struct FnPtr { /* private fields */ }
        Expand description

        A general function pointer, which may carry additional (i.e. curried) argument values +FnPtr in casbin::rhai - Rust

        Struct casbin::rhai::FnPtr

        pub struct FnPtr { /* private fields */ }
        Expand description

        A general function pointer, which may carry additional (i.e. curried) argument values to be passed onto a function during a call.

        Implementations§

        §

        impl FnPtr

        pub fn num_curried(&self) -> usize

        👎Deprecated since 1.8.0: use curry().len() instead

        Get the number of curried arguments.

        §Deprecated
        diff --git a/casbin/rhai/struct.FuncRegistration.html b/casbin/rhai/struct.FuncRegistration.html index 67e01a9f..c6b4488e 100644 --- a/casbin/rhai/struct.FuncRegistration.html +++ b/casbin/rhai/struct.FuncRegistration.html @@ -1,4 +1,4 @@ -FuncRegistration in casbin::rhai - Rust

        Struct casbin::rhai::FuncRegistration

        pub struct FuncRegistration { /* private fields */ }
        Expand description

        Type for fine-tuned module function registration.

        +FuncRegistration in casbin::rhai - Rust

        Struct casbin::rhai::FuncRegistration

        pub struct FuncRegistration { /* private fields */ }
        Expand description

        Type for fine-tuned module function registration.

        Implementations§

        §

        impl FuncRegistration

        pub fn new(name: impl Into<SmartString<LazyCompact>>) -> FuncRegistration

        Create a new FuncRegistration.

        §Defaults

        Restrict a value to a certain interval. Read more
        §

        impl PartialEq<ImmutableString> for &str

        §

        fn eq(&self, other: &ImmutableString) -> bool

        This method tests for self and other values to be equal, and is used by ==.
        1.0.0 · source§

        fn ne(&self, other: &Rhs) -> bool

        This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
        §

        impl PartialEq<ImmutableString> for str

        §

        fn eq(&self, other: &ImmutableString) -> bool

        This method tests for self and other values to be equal, and is used +by ==.
        1.0.0 · source§

        fn ne(&self, other: &Rhs) -> bool

        This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
        §

        impl<S> PartialEq<S> for ImmutableString
        where S: AsRef<str> + ?Sized,

        §

        fn eq(&self, other: &S) -> bool

        This method tests for self and other values to be equal, and is used by ==.
        1.0.0 · source§

        fn ne(&self, other: &Rhs) -> bool

        This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
        §

        impl PartialEq<String> for &ImmutableString

        §

        fn eq(&self, other: &String) -> bool

        This method tests for self and other values to be equal, and is used -by ==.
        1.0.0 · source§

        fn ne(&self, other: &Rhs) -> bool

        This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
        §

        impl PartialEq<str> for &ImmutableString

        §

        fn eq(&self, other: &str) -> bool

        This method tests for self and other values to be equal, and is used +sufficient, and should not be overridden without very good reason.
        §

        impl PartialEq<String> for &ImmutableString

        §

        fn eq(&self, other: &String) -> bool

        This method tests for self and other values to be equal, and is used by ==.
        1.0.0 · source§

        fn ne(&self, other: &Rhs) -> bool

        This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
        §

        impl PartialOrd<ImmutableString> for &str

        §

        fn partial_cmp(&self, other: &ImmutableString) -> Option<Ordering>

        This method returns an ordering between self and other values if one exists. Read more
        1.0.0 · source§

        fn lt(&self, other: &Rhs) -> bool

        This method tests less than (for self and other) and is used by the < operator. Read more
        1.0.0 · source§

        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 more
        1.0.0 · source§

        fn gt(&self, other: &Rhs) -> bool

        This method tests greater than (for self and other) and is used by the > operator. Read more
        1.0.0 · source§

        fn ge(&self, other: &Rhs) -> bool

        This method tests greater than or equal to (for self and other) and is used by the >= +sufficient, and should not be overridden without very good reason.
        §

        impl PartialEq<str> for &ImmutableString

        §

        fn eq(&self, other: &str) -> bool

        This method tests for self and other values to be equal, and is used +by ==.
        1.0.0 · source§

        fn ne(&self, other: &Rhs) -> bool

        This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
        §

        impl PartialOrd<ImmutableString> for &str

        §

        fn partial_cmp(&self, other: &ImmutableString) -> Option<Ordering>

        This method returns an ordering between self and other values if one exists. Read more
        1.0.0 · source§

        fn lt(&self, other: &Rhs) -> bool

        This method tests less than (for self and other) and is used by the < operator. Read more
        1.0.0 · source§

        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 more
        1.0.0 · source§

        fn gt(&self, other: &Rhs) -> bool

        This method tests greater than (for self and other) and is used by the > operator. Read more
        1.0.0 · source§

        fn ge(&self, other: &Rhs) -> bool

        This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
        §

        impl PartialOrd<ImmutableString> for str

        §

        fn partial_cmp(&self, other: &ImmutableString) -> Option<Ordering>

        This method returns an ordering between self and other values if one exists. Read more
        1.0.0 · source§

        fn lt(&self, other: &Rhs) -> bool

        This method tests less than (for self and other) and is used by the < operator. Read more
        1.0.0 · source§

        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 more
        1.0.0 · source§

        fn gt(&self, other: &Rhs) -> bool

        This method tests greater than (for self and other) and is used by the > operator. Read more
        1.0.0 · source§

        fn ge(&self, other: &Rhs) -> bool

        This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
        §

        impl<S> PartialOrd<S> for ImmutableString
        where - S: AsRef<str> + ?Sized,

        §

        fn partial_cmp(&self, other: &S) -> Option<Ordering>

        This method returns an ordering between self and other values if one exists. Read more
        1.0.0 · source§

        fn lt(&self, other: &Rhs) -> bool

        This method tests less than (for self and other) and is used by the < operator. Read more
        1.0.0 · source§

        fn le(&self, other: &Rhs) -> bool

        This method tests less than or equal to (for self and other) and is used by the <= + S: AsRef<str> + ?Sized,

        §

        fn partial_cmp(&self, other: &S) -> Option<Ordering>

        This method returns an ordering between self and other values if one exists. Read more
        1.0.0 · source§

        fn lt(&self, other: &Rhs) -> bool

        This method tests less than (for self and other) and is used by the < operator. Read more
        1.0.0 · source§

        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 more
        1.0.0 · source§

        fn gt(&self, other: &Rhs) -> bool

        This method tests greater than (for self and other) and is used by the > operator. Read more
        1.0.0 · source§

        fn ge(&self, other: &Rhs) -> bool

        This method tests greater than or equal to (for self and other) and is used by the >= +operator. Read more
        §

        impl PartialOrd<String> for &ImmutableString

        §

        fn partial_cmp(&self, other: &String) -> Option<Ordering>

        This method returns an ordering between self and other values if one exists. Read more
        1.0.0 · source§

        fn lt(&self, other: &Rhs) -> bool

        This method tests less than (for self and other) and is used by the < operator. Read more
        1.0.0 · source§

        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 more
        1.0.0 · source§

        fn gt(&self, other: &Rhs) -> bool

        This method tests greater than (for self and other) and is used by the > operator. Read more
        1.0.0 · source§

        fn ge(&self, other: &Rhs) -> bool

        This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
        §

        impl PartialOrd<String> for &ImmutableString

        §

        fn partial_cmp(&self, other: &String) -> Option<Ordering>

        This method returns an ordering between self and other values if one exists. Read more
        1.0.0 · source§

        fn lt(&self, other: &Rhs) -> bool

        This method tests less than (for self and other) and is used by the < operator. Read more
        1.0.0 · source§

        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 more
        1.0.0 · source§

        fn gt(&self, other: &Rhs) -> bool

        This method tests greater than (for self and other) and is used by the > operator. Read more
        1.0.0 · source§

        fn ge(&self, other: &Rhs) -> bool

        This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
        §

        impl PartialOrd<str> for &ImmutableString

        §

        fn partial_cmp(&self, other: &str) -> Option<Ordering>

        This method returns an ordering between self and other values if one exists. Read more
        1.0.0 · source§

        fn lt(&self, other: &Rhs) -> bool

        This method tests less than (for self and other) and is used by the < operator. Read more
        1.0.0 · source§

        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 more
        1.0.0 · source§

        fn gt(&self, other: &Rhs) -> bool

        This method tests greater than (for self and other) and is used by the > operator. Read more
        1.0.0 · source§

        fn ge(&self, other: &Rhs) -> bool

        This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
        §

        impl Serialize for ImmutableString

        §

        fn serialize<S>( &self, ser: S, ) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
        where - S: Serializer,

        Serialize this value into the given Serde serializer. Read more
        §

        impl Sub<&str> for &ImmutableString

        §

        type Output = ImmutableString

        The resulting type after applying the - operator.
        §

        fn sub(self, rhs: &str) -> <&ImmutableString as Sub<&str>>::Output

        Performs the - operation. Read more
        §

        impl Sub<&str> for ImmutableString

        §

        type Output = ImmutableString

        The resulting type after applying the - operator.
        §

        fn sub(self, rhs: &str) -> <ImmutableString as Sub<&str>>::Output

        Performs the - operation. Read more
        §

        impl Sub<String> for &ImmutableString

        §

        type Output = ImmutableString

        The resulting type after applying the - operator.
        §

        fn sub(self, rhs: String) -> <&ImmutableString as Sub<String>>::Output

        Performs the - operation. Read more
        §

        impl Sub<String> for ImmutableString

        §

        type Output = ImmutableString

        The resulting type after applying the - operator.
        §

        fn sub(self, rhs: String) -> <ImmutableString as Sub<String>>::Output

        Performs the - operation. Read more
        §

        impl Sub<char> for &ImmutableString

        §

        type Output = ImmutableString

        The resulting type after applying the - operator.
        §

        fn sub(self, rhs: char) -> <&ImmutableString as Sub<char>>::Output

        Performs the - operation. Read more
        §

        impl Sub<char> for ImmutableString

        §

        type Output = ImmutableString

        The resulting type after applying the - operator.
        §

        fn sub(self, rhs: char) -> <ImmutableString as Sub<char>>::Output

        Performs the - operation. Read more
        §

        impl Sub for &ImmutableString

        §

        type Output = ImmutableString

        The resulting type after applying the - operator.
        §

        fn sub(self, rhs: &ImmutableString) -> <&ImmutableString as Sub>::Output

        Performs the - operation. Read more
        §

        impl Sub for ImmutableString

        §

        type Output = ImmutableString

        The resulting type after applying the - operator.
        §

        fn sub(self, rhs: ImmutableString) -> <ImmutableString as Sub>::Output

        Performs the - operation. Read more
        §

        impl SubAssign<&ImmutableString> for ImmutableString

        §

        fn sub_assign(&mut self, rhs: &ImmutableString)

        Performs the -= operation. Read more
        §

        impl SubAssign<&str> for ImmutableString

        §

        fn sub_assign(&mut self, rhs: &str)

        Performs the -= operation. Read more
        §

        impl SubAssign<String> for ImmutableString

        §

        fn sub_assign(&mut self, rhs: String)

        Performs the -= operation. Read more
        §

        impl SubAssign<char> for ImmutableString

        §

        fn sub_assign(&mut self, rhs: char)

        Performs the -= operation. Read more
        §

        impl SubAssign for ImmutableString

        §

        fn sub_assign(&mut self, rhs: ImmutableString)

        Performs the -= operation. Read more
        §

        impl TryFrom<ImmutableString> for FnPtr

        §

        type Error = Box<EvalAltResult>

        The type returned in the event of a conversion error.
        §

        fn try_from(value: ImmutableString) -> Result<FnPtr, Box<EvalAltResult>>

        Performs the conversion.
        §

        impl Eq for ImmutableString

        Auto Trait Implementations§

        Blanket Implementations§

        source§

        impl<T> Any for T
        where + S: Serializer,

        Serialize this value into the given Serde serializer. Read more
        §

        impl Sub<&str> for &ImmutableString

        §

        type Output = ImmutableString

        The resulting type after applying the - operator.
        §

        fn sub(self, rhs: &str) -> <&ImmutableString as Sub<&str>>::Output

        Performs the - operation. Read more
        §

        impl Sub<&str> for ImmutableString

        §

        type Output = ImmutableString

        The resulting type after applying the - operator.
        §

        fn sub(self, rhs: &str) -> <ImmutableString as Sub<&str>>::Output

        Performs the - operation. Read more
        §

        impl Sub<String> for &ImmutableString

        §

        type Output = ImmutableString

        The resulting type after applying the - operator.
        §

        fn sub(self, rhs: String) -> <&ImmutableString as Sub<String>>::Output

        Performs the - operation. Read more
        §

        impl Sub<String> for ImmutableString

        §

        type Output = ImmutableString

        The resulting type after applying the - operator.
        §

        fn sub(self, rhs: String) -> <ImmutableString as Sub<String>>::Output

        Performs the - operation. Read more
        §

        impl Sub<char> for &ImmutableString

        §

        type Output = ImmutableString

        The resulting type after applying the - operator.
        §

        fn sub(self, rhs: char) -> <&ImmutableString as Sub<char>>::Output

        Performs the - operation. Read more
        §

        impl Sub<char> for ImmutableString

        §

        type Output = ImmutableString

        The resulting type after applying the - operator.
        §

        fn sub(self, rhs: char) -> <ImmutableString as Sub<char>>::Output

        Performs the - operation. Read more
        §

        impl Sub for &ImmutableString

        §

        type Output = ImmutableString

        The resulting type after applying the - operator.
        §

        fn sub(self, rhs: &ImmutableString) -> <&ImmutableString as Sub>::Output

        Performs the - operation. Read more
        §

        impl Sub for ImmutableString

        §

        type Output = ImmutableString

        The resulting type after applying the - operator.
        §

        fn sub(self, rhs: ImmutableString) -> <ImmutableString as Sub>::Output

        Performs the - operation. Read more
        §

        impl SubAssign<&ImmutableString> for ImmutableString

        §

        fn sub_assign(&mut self, rhs: &ImmutableString)

        Performs the -= operation. Read more
        §

        impl SubAssign<&str> for ImmutableString

        §

        fn sub_assign(&mut self, rhs: &str)

        Performs the -= operation. Read more
        §

        impl SubAssign<String> for ImmutableString

        §

        fn sub_assign(&mut self, rhs: String)

        Performs the -= operation. Read more
        §

        impl SubAssign<char> for ImmutableString

        §

        fn sub_assign(&mut self, rhs: char)

        Performs the -= operation. Read more
        §

        impl SubAssign for ImmutableString

        §

        fn sub_assign(&mut self, rhs: ImmutableString)

        Performs the -= operation. Read more
        §

        impl TryFrom<ImmutableString> for FnPtr

        §

        type Error = Box<EvalAltResult>

        The type returned in the event of a conversion error.
        §

        fn try_from(value: ImmutableString) -> Result<FnPtr, Box<EvalAltResult>>

        Performs the conversion.
        §

        impl Eq for ImmutableString

        Auto Trait Implementations§

        Blanket Implementations§

        source§

        impl<T> Any for T
        where T: 'static + ?Sized,

        source§

        fn type_id(&self) -> TypeId

        Gets the TypeId of self. Read more
        source§

        impl<T> Borrow<T> for T
        where T: ?Sized,

        source§

        fn borrow(&self) -> &T

        Immutably borrows from an owned value. Read more
        source§

        impl<T> BorrowMut<T> for T
        where T: ?Sized,

        source§

        fn borrow_mut(&mut self) -> &mut T

        Mutably borrows from an owned value. Read more
        source§

        impl<T> CloneToUninit for T
        where diff --git a/casbin/rhai/struct.Instant.html b/casbin/rhai/struct.Instant.html index 7f7aba9e..92424d27 100644 --- a/casbin/rhai/struct.Instant.html +++ b/casbin/rhai/struct.Instant.html @@ -1,4 +1,4 @@ -Instant in casbin::rhai - Rust

        Struct casbin::rhai::Instant

        1.8.0 · source ·
        pub struct Instant(/* private fields */);
        Expand description

        A measurement of a monotonically nondecreasing clock. +Instant in casbin::rhai - Rust

        Struct casbin::rhai::Instant

        1.8.0 · source ·
        pub struct Instant(/* private fields */);
        Expand description

        A measurement of a monotonically nondecreasing clock. Opaque and useful only with Duration.

        Instants are always guaranteed, barring platform bugs, to be no less than any previously measured instant when created, and are often useful for tasks such as measuring diff --git a/casbin/rhai/struct.Locked.html b/casbin/rhai/struct.Locked.html index 7463e8dc..5b8caa3c 100644 --- a/casbin/rhai/struct.Locked.html +++ b/casbin/rhai/struct.Locked.html @@ -1,4 +1,4 @@ -Locked in casbin::rhai - Rust

        Struct casbin::rhai::Locked

        1.0.0 · source ·
        pub struct Locked<T>
        where +Locked in casbin::rhai - Rust

        Struct casbin::rhai::Locked

        1.0.0 · source ·
        pub struct Locked<T>
        where T: ?Sized,
        { /* private fields */ }
        Expand description

        A reader-writer lock

        This type of lock allows a number of readers or at most one writer at any point in time. The write portion of this lock typically allows modification diff --git a/casbin/rhai/struct.Module.html b/casbin/rhai/struct.Module.html index 4681ede3..05276f75 100644 --- a/casbin/rhai/struct.Module.html +++ b/casbin/rhai/struct.Module.html @@ -1,4 +1,4 @@ -Module in casbin::rhai - Rust

        Struct casbin::rhai::Module

        pub struct Module { /* private fields */ }
        Expand description

        A module which may contain variables, sub-modules, external Rust functions, +Module in casbin::rhai - Rust

        Struct casbin::rhai::Module

        pub struct Module { /* private fields */ }
        Expand description

        A module which may contain variables, sub-modules, external Rust functions, and/or script-defined functions.

        Implementations§

        §

        impl Module

        pub const fn with_capacity(_capacity: usize) -> Module

        👎Deprecated since 1.12.0: use new instead

        Create a new Module with a pre-sized capacity for functions.

        §Deprecated
        diff --git a/casbin/rhai/struct.NativeCallContext.html b/casbin/rhai/struct.NativeCallContext.html index d21038f8..56479ed7 100644 --- a/casbin/rhai/struct.NativeCallContext.html +++ b/casbin/rhai/struct.NativeCallContext.html @@ -1,4 +1,4 @@ -NativeCallContext in casbin::rhai - Rust

        Struct casbin::rhai::NativeCallContext

        pub struct NativeCallContext<'a> { /* private fields */ }
        Expand description

        Context of a native Rust function call.

        +NativeCallContext in casbin::rhai - Rust

        Struct casbin::rhai::NativeCallContext

        pub struct NativeCallContext<'a> { /* private fields */ }
        Expand description

        Context of a native Rust function call.

        Implementations§

        §

        impl NativeCallContext<'_>

        pub fn new( engine: &Engine, fn_name: &str, diff --git a/casbin/rhai/struct.ParseError.html b/casbin/rhai/struct.ParseError.html index ff8d07ca..001f0c4f 100644 --- a/casbin/rhai/struct.ParseError.html +++ b/casbin/rhai/struct.ParseError.html @@ -1,4 +1,4 @@ -ParseError in casbin::rhai - Rust

        Struct casbin::rhai::ParseError

        pub struct ParseError(pub Box<ParseErrorType>, pub Position);
        Expand description

        Error when parsing a script.

        +ParseError in casbin::rhai - Rust

        Struct casbin::rhai::ParseError

        pub struct ParseError(pub Box<ParseErrorType>, pub Position);
        Expand description

        Error when parsing a script.

        Tuple Fields§

        §0: Box<ParseErrorType>

        Parse error type.

        §1: Position

        Position of the parse error.

        Implementations§

        §

        impl ParseError

        pub const fn err_type(&self) -> &ParseErrorType

        Get the type of this parse error.

        diff --git a/casbin/rhai/struct.Position.html b/casbin/rhai/struct.Position.html index f91ac8ca..f7aab34a 100644 --- a/casbin/rhai/struct.Position.html +++ b/casbin/rhai/struct.Position.html @@ -1,4 +1,4 @@ -Position in casbin::rhai - Rust

        Struct casbin::rhai::Position

        pub struct Position { /* private fields */ }
        Expand description

        A location (line number + character position) in the input script.

        +Position in casbin::rhai - Rust

        Struct casbin::rhai::Position

        pub struct Position { /* private fields */ }
        Expand description

        A location (line number + character position) in the input script.

        §Limitations

        In order to keep footprint small, both line number and character position have 16-bit resolution, meaning they go up to a maximum of 65,535 lines and 65,535 characters per line.

        diff --git a/casbin/rhai/struct.Scope.html b/casbin/rhai/struct.Scope.html index 6b81e55c..bfe6dd69 100644 --- a/casbin/rhai/struct.Scope.html +++ b/casbin/rhai/struct.Scope.html @@ -1,4 +1,4 @@ -Scope in casbin::rhai - Rust

        Struct casbin::rhai::Scope

        pub struct Scope<'a> { /* private fields */ }
        Expand description

        Type containing information about the current scope. Useful for keeping state between +Scope in casbin::rhai - Rust

        Struct casbin::rhai::Scope

        pub struct Scope<'a> { /* private fields */ }
        Expand description

        Type containing information about the current scope. Useful for keeping state between Engine evaluation runs.

        §Lifetime

        Currently the lifetime parameter is not used, but it is not guaranteed to remain unused for @@ -359,9 +359,9 @@

        §Example
        T: IntoIterator<Item = (K, Dynamic)>,

        Extends a collection with the contents of an iterator. Read more
        source§

        fn extend_one(&mut self, item: A)

        🔬This is a nightly-only experimental API. (extend_one)
        Extends a collection with exactly one element.
        source§

        fn extend_reserve(&mut self, additional: usize)

        🔬This is a nightly-only experimental API. (extend_one)
        Reserves capacity in a collection for the given number of additional elements. Read more
        §

        impl<K> Extend<(K, bool, Dynamic)> for Scope<'_>
        where K: Into<SmartString<LazyCompact>>,

        §

        fn extend<T>(&mut self, iter: T)
        where T: IntoIterator<Item = (K, bool, Dynamic)>,

        Extends a collection with the contents of an iterator. Read more
        source§

        fn extend_one(&mut self, item: A)

        🔬This is a nightly-only experimental API. (extend_one)
        Extends a collection with exactly one element.
        source§

        fn extend_reserve(&mut self, additional: usize)

        🔬This is a nightly-only experimental API. (extend_one)
        Reserves capacity in a collection for the given number of additional elements. Read more
        §

        impl<K> FromIterator<(K, Dynamic)> for Scope<'_>
        where - K: Into<SmartString<LazyCompact>>,

        §

        fn from_iter<T>(iter: T) -> Scope<'_>
        where - T: IntoIterator<Item = (K, Dynamic)>,

        Creates a value from an iterator. Read more
        §

        impl<K> FromIterator<(K, bool, Dynamic)> for Scope<'_>
        where K: Into<SmartString<LazyCompact>>,

        §

        fn from_iter<T>(iter: T) -> Scope<'_>
        where + T: IntoIterator<Item = (K, Dynamic)>,

        Creates a value from an iterator. Read more
        §

        impl<K> FromIterator<(K, bool, Dynamic)> for Scope<'_>
        where + K: Into<SmartString<LazyCompact>>,

        §

        fn from_iter<T>(iter: T) -> Scope<'_>
        where T: IntoIterator<Item = (K, bool, Dynamic)>,

        Creates a value from an iterator. Read more
        §

        impl<'a> Hash for Scope<'a>

        §

        fn hash<__H>(&self, state: &mut __H)
        where __H: Hasher,

        Feeds this value into the given Hasher. Read more
        1.3.0 · source§

        fn hash_slice<H>(data: &[Self], state: &mut H)
        where H: Hasher, diff --git a/casbin/rhai/struct.Shared.html b/casbin/rhai/struct.Shared.html index 46295bdd..956ddf5c 100644 --- a/casbin/rhai/struct.Shared.html +++ b/casbin/rhai/struct.Shared.html @@ -1,4 +1,4 @@ -Shared in casbin::rhai - Rust

        Struct casbin::rhai::Shared

        1.0.0 · source ·
        pub struct Shared<T, A = Global>
        where +Shared in casbin::rhai - Rust

        Struct casbin::rhai::Shared

        1.0.0 · source ·
        pub struct Shared<T, A = Global>
        where A: Allocator, T: ?Sized,
        { /* private fields */ }
        Expand description

        A thread-safe reference-counting pointer. ‘Arc’ stands for ‘Atomically Reference Counted’.

        diff --git a/casbin/rhai/struct.TypeBuilder.html b/casbin/rhai/struct.TypeBuilder.html index dc476ee7..80b51353 100644 --- a/casbin/rhai/struct.TypeBuilder.html +++ b/casbin/rhai/struct.TypeBuilder.html @@ -1,4 +1,4 @@ -TypeBuilder in casbin::rhai - Rust

        Struct casbin::rhai::TypeBuilder

        pub struct TypeBuilder<'a, T>
        where +TypeBuilder in casbin::rhai - Rust

        Struct casbin::rhai::TypeBuilder

        pub struct TypeBuilder<'a, T>
        where T: Variant + Clone,
        { /* private fields */ }
        Expand description

        Builder to build the API of a custom type for use with an Engine.

        The type is automatically registered when this builder is dropped.

        §Pretty-Print Name

        diff --git a/casbin/rhai/struct.VarDefInfo.html b/casbin/rhai/struct.VarDefInfo.html index 0562673d..7d73768c 100644 --- a/casbin/rhai/struct.VarDefInfo.html +++ b/casbin/rhai/struct.VarDefInfo.html @@ -1,4 +1,4 @@ -VarDefInfo in casbin::rhai - Rust

        Struct casbin::rhai::VarDefInfo

        pub struct VarDefInfo<'a> {
        +VarDefInfo in casbin::rhai - Rust

        Struct casbin::rhai::VarDefInfo

        pub struct VarDefInfo<'a> {
             pub name: &'a str,
             pub is_const: bool,
             pub nesting_level: usize,
        diff --git a/casbin/rhai/trait.CustomType.html b/casbin/rhai/trait.CustomType.html
        index 5b46f270..b6b4a74c 100644
        --- a/casbin/rhai/trait.CustomType.html
        +++ b/casbin/rhai/trait.CustomType.html
        @@ -1,4 +1,4 @@
        -CustomType in casbin::rhai - Rust

        Trait casbin::rhai::CustomType

        pub trait CustomType: Variant + Clone {
        +CustomType in casbin::rhai - Rust

        Trait casbin::rhai::CustomType

        pub trait CustomType: Variant + Clone {
             // Required method
             fn build(builder: TypeBuilder<'_, Self>);
         }
        Expand description

        Trait to build the API of a custom type for use with an Engine diff --git a/casbin/rhai/trait.FuncArgs.html b/casbin/rhai/trait.FuncArgs.html index 5379d876..5e0a168b 100644 --- a/casbin/rhai/trait.FuncArgs.html +++ b/casbin/rhai/trait.FuncArgs.html @@ -1,4 +1,4 @@ -FuncArgs in casbin::rhai - Rust

        Trait casbin::rhai::FuncArgs

        pub trait FuncArgs {
        +FuncArgs in casbin::rhai - Rust

        Trait casbin::rhai::FuncArgs

        pub trait FuncArgs {
             // Required method
             fn parse<ARGS>(self, args: &mut ARGS)
                where ARGS: Extend<Dynamic>;
        diff --git a/casbin/rhai/trait.RhaiNativeFunc.html b/casbin/rhai/trait.RhaiNativeFunc.html
        index 5da8fd32..c30677bd 100644
        --- a/casbin/rhai/trait.RhaiNativeFunc.html
        +++ b/casbin/rhai/trait.RhaiNativeFunc.html
        @@ -1,4 +1,4 @@
        -RhaiNativeFunc in casbin::rhai - Rust

        Trait casbin::rhai::RhaiNativeFunc

        pub trait RhaiNativeFunc<A, const N: usize, const X: bool, R, const F: bool>
        where +RhaiNativeFunc in casbin::rhai - Rust

        Trait casbin::rhai::RhaiNativeFunc

        pub trait RhaiNativeFunc<A, const N: usize, const X: bool, R, const F: bool>
        where A: 'static, R: 'static,
        { // Required methods diff --git a/casbin/rhai/type.Array.html b/casbin/rhai/type.Array.html index f865324c..f2a2eb49 100644 --- a/casbin/rhai/type.Array.html +++ b/casbin/rhai/type.Array.html @@ -1,3 +1,3 @@ -Array in casbin::rhai - Rust

        Type Alias casbin::rhai::Array

        pub type Array = Vec<Dynamic>;
        Expand description

        Variable-sized array of Dynamic values.

        +Array in casbin::rhai - Rust

        Type Alias casbin::rhai::Array

        pub type Array = Vec<Dynamic>;
        Expand description

        Variable-sized array of Dynamic values.

        Not available under no_index.

        Aliased Type§

        struct Array { /* private fields */ }
        \ No newline at end of file diff --git a/casbin/rhai/type.Blob.html b/casbin/rhai/type.Blob.html index 7a479516..8160dfe9 100644 --- a/casbin/rhai/type.Blob.html +++ b/casbin/rhai/type.Blob.html @@ -1,3 +1,3 @@ -Blob in casbin::rhai - Rust

        Type Alias casbin::rhai::Blob

        pub type Blob = Vec<u8>;
        Expand description

        Variable-sized array of u8 values (byte array).

        +Blob in casbin::rhai - Rust

        Type Alias casbin::rhai::Blob

        pub type Blob = Vec<u8>;
        Expand description

        Variable-sized array of u8 values (byte array).

        Not available under no_index.

        Aliased Type§

        struct Blob { /* private fields */ }
        \ No newline at end of file diff --git a/casbin/rhai/type.INT.html b/casbin/rhai/type.INT.html index ceaa7f05..5adb9d14 100644 --- a/casbin/rhai/type.INT.html +++ b/casbin/rhai/type.INT.html @@ -1,4 +1,4 @@ -INT in casbin::rhai - Rust

        Type Alias casbin::rhai::INT

        pub type INT = i32;
        Expand description

        The system integer type. +INT in casbin::rhai - Rust

        Type Alias casbin::rhai::INT

        pub type INT = i32;
        Expand description

        The system integer type. It is defined as i32 since the only_i32 feature is used.

        If the only_i32 feature is not used, this will be i64 instead.

        \ No newline at end of file diff --git a/casbin/rhai/type.Map.html b/casbin/rhai/type.Map.html index 0bad520f..d17f32e1 100644 --- a/casbin/rhai/type.Map.html +++ b/casbin/rhai/type.Map.html @@ -1,4 +1,4 @@ -Map in casbin::rhai - Rust

        Type Alias casbin::rhai::Map

        pub type Map = BTreeMap<SmartString<LazyCompact>, Dynamic>;
        Expand description

        A dictionary of Dynamic values with string keys.

        +Map in casbin::rhai - Rust

        Type Alias casbin::rhai::Map

        pub type Map = BTreeMap<SmartString<LazyCompact>, Dynamic>;
        Expand description

        A dictionary of Dynamic values with string keys.

        Not available under no_object.

        SmartString is used as the key type because most property names are ASCII and short, fewer than 23 characters, so they can be stored inline.

        diff --git a/casbin/struct.Assertion.html b/casbin/struct.Assertion.html index b5728914..2a4b5d30 100644 --- a/casbin/struct.Assertion.html +++ b/casbin/struct.Assertion.html @@ -1,4 +1,4 @@ -Assertion in casbin - Rust

        Struct casbin::Assertion

        source ·
        pub struct Assertion {
        +Assertion in casbin - Rust

        Struct casbin::Assertion

        source ·
        pub struct Assertion {
             pub key: String,
             pub value: String,
             pub tokens: Vec<String>,
        diff --git a/casbin/struct.DefaultEffectStream.html b/casbin/struct.DefaultEffectStream.html
        index befe5690..ca49d14b 100644
        --- a/casbin/struct.DefaultEffectStream.html
        +++ b/casbin/struct.DefaultEffectStream.html
        @@ -1,4 +1,4 @@
        -DefaultEffectStream in casbin - Rust

        Struct casbin::DefaultEffectStream

        source ·
        pub struct DefaultEffectStream { /* private fields */ }

        Trait Implementations§

        source§

        impl Clone for DefaultEffectStream

        source§

        fn clone(&self) -> DefaultEffectStream

        Returns a copy of the value. Read more
        1.0.0 · source§

        fn clone_from(&mut self, source: &Self)

        Performs copy-assignment from source. Read more
        source§

        impl EffectorStream for DefaultEffectStream

        source§

        fn next(&self) -> bool

        source§

        fn push_effect(&mut self, eft: EffectKind) -> bool

        Auto Trait Implementations§

        Blanket Implementations§

        source§

        impl<T> Any for T
        where +DefaultEffectStream in casbin - Rust

        Struct casbin::DefaultEffectStream

        source ·
        pub struct DefaultEffectStream { /* private fields */ }

        Trait Implementations§

        source§

        impl Clone for DefaultEffectStream

        source§

        fn clone(&self) -> DefaultEffectStream

        Returns a copy of the value. Read more
        1.0.0 · source§

        fn clone_from(&mut self, source: &Self)

        Performs copy-assignment from source. Read more
        source§

        impl EffectorStream for DefaultEffectStream

        source§

        fn next(&self) -> bool

        source§

        fn push_effect(&mut self, eft: EffectKind) -> bool

        Auto Trait Implementations§

        Blanket Implementations§

        source§

        impl<T> Any for T
        where T: 'static + ?Sized,

        source§

        fn type_id(&self) -> TypeId

        Gets the TypeId of self. Read more
        source§

        impl<T> Borrow<T> for T
        where T: ?Sized,

        source§

        fn borrow(&self) -> &T

        Immutably borrows from an owned value. Read more
        source§

        impl<T> BorrowMut<T> for T
        where T: ?Sized,

        source§

        fn borrow_mut(&mut self) -> &mut T

        Mutably borrows from an owned value. Read more
        source§

        impl<T> CloneToUninit for T
        where diff --git a/casbin/struct.DefaultEffector.html b/casbin/struct.DefaultEffector.html index 0e15cbd1..b28e9587 100644 --- a/casbin/struct.DefaultEffector.html +++ b/casbin/struct.DefaultEffector.html @@ -1,4 +1,4 @@ -DefaultEffector in casbin - Rust

        Struct casbin::DefaultEffector

        source ·
        pub struct DefaultEffector;

        Trait Implementations§

        source§

        impl Default for DefaultEffector

        source§

        fn default() -> DefaultEffector

        Returns the “default value” for a type. Read more
        source§

        impl Effector for DefaultEffector

        source§

        fn new_stream(&self, expr: &str, cap: usize) -> Box<dyn EffectorStream>

        Auto Trait Implementations§

        Blanket Implementations§

        source§

        impl<T> Any for T
        where +DefaultEffector in casbin - Rust

        Struct casbin::DefaultEffector

        source ·
        pub struct DefaultEffector;

        Trait Implementations§

        source§

        impl Default for DefaultEffector

        source§

        fn default() -> DefaultEffector

        Returns the “default value” for a type. Read more
        source§

        impl Effector for DefaultEffector

        source§

        fn new_stream(&self, expr: &str, cap: usize) -> Box<dyn EffectorStream>

        Auto Trait Implementations§

        Blanket Implementations§

        source§

        impl<T> Any for T
        where T: 'static + ?Sized,

        source§

        fn type_id(&self) -> TypeId

        Gets the TypeId of self. Read more
        source§

        impl<T> Borrow<T> for T
        where T: ?Sized,

        source§

        fn borrow(&self) -> &T

        Immutably borrows from an owned value. Read more
        source§

        impl<T> BorrowMut<T> for T
        where T: ?Sized,

        source§

        fn borrow_mut(&mut self) -> &mut T

        Mutably borrows from an owned value. Read more
        source§

        impl<T> From<T> for T

        source§

        fn from(t: T) -> T

        Returns the argument unchanged.

        diff --git a/casbin/struct.DefaultModel.html b/casbin/struct.DefaultModel.html index ebc9f978..42a8adf5 100644 --- a/casbin/struct.DefaultModel.html +++ b/casbin/struct.DefaultModel.html @@ -1,4 +1,4 @@ -DefaultModel in casbin - Rust

        Struct casbin::DefaultModel

        source ·
        pub struct DefaultModel { /* private fields */ }

        Implementations§

        Trait Implementations§

        source§

        impl Clone for DefaultModel

        source§

        fn clone(&self) -> DefaultModel

        Returns a copy of the value. Read more
        1.0.0 · source§

        fn clone_from(&mut self, source: &Self)

        Performs copy-assignment from source. Read more
        source§

        impl Default for DefaultModel

        source§

        fn default() -> DefaultModel

        Returns the “default value” for a type. Read more
        source§

        impl Model for DefaultModel

        source§

        fn add_def(&mut self, sec: &str, key: &str, value: &str) -> bool

        source§

        fn get_model(&self) -> &HashMap<String, LinkedHashMap<String, Assertion>>

        source§

        fn get_mut_model( +DefaultModel in casbin - Rust

        Struct casbin::DefaultModel

        source ·
        pub struct DefaultModel { /* private fields */ }

        Implementations§

        Trait Implementations§

        source§

        impl Clone for DefaultModel

        source§

        fn clone(&self) -> DefaultModel

        Returns a copy of the value. Read more
        1.0.0 · source§

        fn clone_from(&mut self, source: &Self)

        Performs copy-assignment from source. Read more
        source§

        impl Default for DefaultModel

        source§

        fn default() -> DefaultModel

        Returns the “default value” for a type. Read more
        source§

        impl Model for DefaultModel

        source§

        fn add_def(&mut self, sec: &str, key: &str, value: &str) -> bool

        source§

        fn get_model(&self) -> &HashMap<String, LinkedHashMap<String, Assertion>>

        source§

        fn get_mut_model( &mut self, ) -> &mut HashMap<String, LinkedHashMap<String, Assertion>>