pub struct InstanceClass { /* private fields */ }
Expand description
A user-defined class.
Implementations§
Trait Implementations§
Source§impl<Txn> CastFrom<InstanceClass> for (Link, Map<State<Txn>>)
impl<Txn> CastFrom<InstanceClass> for (Link, Map<State<Txn>>)
Source§fn cast_from(class: InstanceClass) -> Self
fn cast_from(class: InstanceClass) -> Self
Cast an instance of
T
into an instance of Self
.Source§impl CastFrom<InstanceClass> for Scalar
impl CastFrom<InstanceClass> for Scalar
Source§fn cast_from(class: InstanceClass) -> Self
fn cast_from(class: InstanceClass) -> Self
Cast an instance of
T
into an instance of Self
.Source§impl CastFrom<Link> for InstanceClass
impl CastFrom<Link> for InstanceClass
Source§impl Clone for InstanceClass
impl Clone for InstanceClass
Source§fn clone(&self) -> InstanceClass
fn clone(&self) -> InstanceClass
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for InstanceClass
impl Debug for InstanceClass
Source§impl Default for InstanceClass
impl Default for InstanceClass
Source§fn default() -> InstanceClass
fn default() -> InstanceClass
Returns the “default value” for a type. Read more
Source§impl<Txn> From<InstanceClass> for Object<Txn>
impl<Txn> From<InstanceClass> for Object<Txn>
Source§fn from(class: InstanceClass) -> Self
fn from(class: InstanceClass) -> Self
Converts to this type from the input type.
Source§impl<Txn> From<InstanceClass> for State<Txn>
impl<Txn> From<InstanceClass> for State<Txn>
Source§fn from(class: InstanceClass) -> Self
fn from(class: InstanceClass) -> Self
Converts to this type from the input type.
Source§impl From<StateType> for InstanceClass
impl From<StateType> for InstanceClass
Source§impl FromStream for InstanceClass
impl FromStream for InstanceClass
Source§impl GetSize for InstanceClass
impl GetSize for InstanceClass
Source§fn get_heap_size(&self) -> usize
fn get_heap_size(&self) -> usize
Determines how many bytes this object occupies inside the heap. Read more
Source§fn get_stack_size() -> usize
fn get_stack_size() -> usize
Determines how may bytes this object occupies inside the stack. Read more
Source§impl<'a, D: Digest> Hash<D> for &'a InstanceClass
impl<'a, D: Digest> Hash<D> for &'a InstanceClass
Source§impl<D: Digest> Hash<D> for InstanceClass
impl<D: Digest> Hash<D> for InstanceClass
Source§impl Instance for InstanceClass
impl Instance for InstanceClass
Source§type Class = ObjectType
type Class = ObjectType
The
Class
type of this instanceSource§fn class(&self) -> ObjectType
fn class(&self) -> ObjectType
Returns the [
Class]
of this instance.Source§impl<'en> IntoStream<'en> for InstanceClass
impl<'en> IntoStream<'en> for InstanceClass
Source§impl PartialEq for InstanceClass
impl PartialEq for InstanceClass
Source§impl<Txn> Route<State<Txn>> for InstanceClass
impl<Txn> Route<State<Txn>> for InstanceClass
Source§impl<'en> ToStream<'en> for InstanceClass
impl<'en> ToStream<'en> for InstanceClass
Source§impl TryCastFrom<(Subject, Map<Scalar>)> for InstanceClass
impl TryCastFrom<(Subject, Map<Scalar>)> for InstanceClass
Source§fn can_cast_from(value: &PostRef) -> bool
fn can_cast_from(value: &PostRef) -> bool
Test if
value
can be cast into Self
.Source§fn opt_cast_from(value: PostRef) -> Option<Self>
fn opt_cast_from(value: PostRef) -> Option<Self>
Returns
Some(Self)
if the source value can be cast into Self
, otherwise None
.Source§impl TryCastFrom<InstanceClass> for Link
impl TryCastFrom<InstanceClass> for Link
Source§fn can_cast_from(class: &InstanceClass) -> bool
fn can_cast_from(class: &InstanceClass) -> bool
Test if
value
can be cast into Self
.Source§fn opt_cast_from(class: InstanceClass) -> Option<Self>
fn opt_cast_from(class: InstanceClass) -> Option<Self>
Returns
Some(Self)
if the source value can be cast into Self
, otherwise None
.Source§impl TryCastFrom<InstanceClass> for StateType
impl TryCastFrom<InstanceClass> for StateType
Source§fn can_cast_from(class: &InstanceClass) -> bool
fn can_cast_from(class: &InstanceClass) -> bool
Test if
value
can be cast into Self
.Source§fn opt_cast_from(class: InstanceClass) -> Option<Self>
fn opt_cast_from(class: InstanceClass) -> Option<Self>
Returns
Some(Self)
if the source value can be cast into Self
, otherwise None
.Source§impl TryCastFrom<InstanceClass> for Value
impl TryCastFrom<InstanceClass> for Value
Source§fn can_cast_from(class: &InstanceClass) -> bool
fn can_cast_from(class: &InstanceClass) -> bool
Test if
value
can be cast into Self
.Source§fn opt_cast_from(class: InstanceClass) -> Option<Self>
fn opt_cast_from(class: InstanceClass) -> Option<Self>
Returns
Some(Self)
if the source value can be cast into Self
, otherwise None
.Source§impl TryCastFrom<OpRef> for InstanceClass
impl TryCastFrom<OpRef> for InstanceClass
Source§fn can_cast_from(op_ref: &OpRef) -> bool
fn can_cast_from(op_ref: &OpRef) -> bool
Test if
value
can be cast into Self
.Source§fn opt_cast_from(op_ref: OpRef) -> Option<Self>
fn opt_cast_from(op_ref: OpRef) -> Option<Self>
Returns
Some(Self)
if the source value can be cast into Self
, otherwise None
.Source§impl TryCastFrom<Scalar> for InstanceClass
impl TryCastFrom<Scalar> for InstanceClass
Source§fn can_cast_from(scalar: &Scalar) -> bool
fn can_cast_from(scalar: &Scalar) -> bool
Test if
value
can be cast into Self
.Source§fn opt_cast_from(scalar: Scalar) -> Option<Self>
fn opt_cast_from(scalar: Scalar) -> Option<Self>
Returns
Some(Self)
if the source value can be cast into Self
, otherwise None
.Source§impl<Txn> TryCastFrom<State<Txn>> for InstanceClass
impl<Txn> TryCastFrom<State<Txn>> for InstanceClass
Source§fn can_cast_from(state: &State<Txn>) -> bool
fn can_cast_from(state: &State<Txn>) -> bool
Test if
value
can be cast into Self
.Source§fn opt_cast_from(state: State<Txn>) -> Option<InstanceClass>
fn opt_cast_from(state: State<Txn>) -> Option<InstanceClass>
Returns
Some(Self)
if the source value can be cast into Self
, otherwise None
.Source§impl TryCastFrom<TCRef> for InstanceClass
impl TryCastFrom<TCRef> for InstanceClass
Source§fn can_cast_from(tc_ref: &TCRef) -> bool
fn can_cast_from(tc_ref: &TCRef) -> bool
Test if
value
can be cast into Self
.Source§fn opt_cast_from(tc_ref: TCRef) -> Option<Self>
fn opt_cast_from(tc_ref: TCRef) -> Option<Self>
Returns
Some(Self)
if the source value can be cast into Self
, otherwise None
.Source§impl TryCastFrom<Value> for InstanceClass
impl TryCastFrom<Value> for InstanceClass
Source§fn can_cast_from(value: &Value) -> bool
fn can_cast_from(value: &Value) -> bool
Test if
value
can be cast into Self
.Source§fn opt_cast_from(value: Value) -> Option<Self>
fn opt_cast_from(value: Value) -> Option<Self>
Returns
Some(Self)
if the source value can be cast into Self
, otherwise None
.impl Class for InstanceClass
impl Eq for InstanceClass
impl StructuralPartialEq for InstanceClass
Auto Trait Implementations§
impl Freeze for InstanceClass
impl RefUnwindSafe for InstanceClass
impl Send for InstanceClass
impl Sync for InstanceClass
impl Unpin for InstanceClass
impl UnwindSafe for InstanceClass
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<F> Match for F
impl<F> Match for F
Source§fn matches<T>(&self) -> boolwhere
T: TryCastFrom<Self>,
fn matches<T>(&self) -> boolwhere
T: TryCastFrom<Self>,
Returns
true
if self
can be cast into the target type T
.Source§impl<State, T> Public<State> for T
impl<State, T> Public<State> for T
fn get<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
txn: &'life1 <State as StateInstance>::Txn,
path: &'life2 [Id],
key: Value,
) -> Pin<Box<dyn Future<Output = Result<State, TCError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
T: 'async_trait,
fn put<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
txn: &'life1 <State as StateInstance>::Txn,
path: &'life2 [Id],
key: Value,
value: State,
) -> Pin<Box<dyn Future<Output = Result<(), TCError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
T: 'async_trait,
fn post<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
txn: &'life1 <State as StateInstance>::Txn,
path: &'life2 [Id],
params: Map<State>,
) -> Pin<Box<dyn Future<Output = Result<State, TCError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
T: 'async_trait,
fn delete<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
txn: &'life1 <State as StateInstance>::Txn,
path: &'life2 [Id],
key: Value,
) -> Pin<Box<dyn Future<Output = Result<(), TCError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
T: 'async_trait,
Source§impl<F, T> TryCastFrom<F> for Twhere
T: CastFrom<F>,
impl<F, T> TryCastFrom<F> for Twhere
T: CastFrom<F>,
Source§fn can_cast_from(_: &F) -> bool
fn can_cast_from(_: &F) -> bool
Test if
value
can be cast into Self
.Source§fn opt_cast_from(f: F) -> Option<T>
fn opt_cast_from(f: F) -> Option<T>
Returns
Some(Self)
if the source value can be cast into Self
, otherwise None
.Source§impl<F, T> TryCastInto<T> for Fwhere
T: TryCastFrom<F>,
impl<F, T> TryCastInto<T> for Fwhere
T: TryCastFrom<F>,
Source§fn can_cast_into(&self) -> bool
fn can_cast_into(&self) -> bool
Test if
self
can be cast into T
.Source§fn opt_cast_into(self) -> Option<T>
fn opt_cast_into(self) -> Option<T>
Returns
Some(T)
if self
can be cast into T
, otherwise None
.Source§fn try_cast_into<Err, OnErr>(self, on_err: OnErr) -> Result<T, Err>where
OnErr: FnOnce(&Self) -> Err,
fn try_cast_into<Err, OnErr>(self, on_err: OnErr) -> Result<T, Err>where
OnErr: FnOnce(&Self) -> Err,
Returns
Ok(T)
if self
can be cast into T
, otherwise calls on_err
.