pub struct Custom {
pub kind: String,
pub inner: Expression,
}Expand description
Custom.
Fields§
§kind: StringKind.
inner: ExpressionInner.
Implementations§
Source§impl Custom
impl Custom
Sourcepub fn new(kind: String, inner: Expression) -> Self
pub fn new(kind: String, inner: Expression) -> Self
Constructor.
Sourcepub fn assert_kind(
&self,
kind: &str,
type_name: &str,
) -> Result<(), DispatchError>
pub fn assert_kind( &self, kind: &str, type_name: &str, ) -> Result<(), DispatchError>
Assert kind.
Trait Implementations§
impl Eq for Custom
Source§impl From<Custom> for Expression
impl From<Custom> for Expression
Source§impl GuestCustomResource for Custom
impl GuestCustomResource for Custom
fn new(kind: String, inner: Expression) -> Self
fn inner(&self) -> (String, Expression)
Source§impl Ord for Custom
impl Ord for Custom
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for Custom
impl PartialOrd for Custom
impl StructuralPartialEq for Custom
Auto Trait Implementations§
impl !Freeze for Custom
impl RefUnwindSafe for Custom
impl Send for Custom
impl Sync for Custom
impl Unpin for Custom
impl UnsafeUnpin for Custom
impl UnwindSafe for Custom
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