pub struct ChildDepthBudget(/* private fields */);Implementations§
Source§impl ChildDepthBudget
impl ChildDepthBudget
pub fn new(value: u16) -> Result<Self, DomainError>
pub const fn get(self) -> u16
pub const fn permits_child(self) -> bool
pub fn for_child(self, local: MaxChildDepth) -> Result<Self, DomainError>
Trait Implementations§
Source§impl Clone for ChildDepthBudget
impl Clone for ChildDepthBudget
Source§fn clone(&self) -> ChildDepthBudget
fn clone(&self) -> ChildDepthBudget
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ChildDepthBudget
Source§impl Debug for ChildDepthBudget
impl Debug for ChildDepthBudget
Source§impl<'de> Deserialize<'de> for ChildDepthBudget
impl<'de> Deserialize<'de> for ChildDepthBudget
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ChildDepthBudget
Source§impl From<ChildDepthBudget> for u16
impl From<ChildDepthBudget> for u16
Source§fn from(value: ChildDepthBudget) -> Self
fn from(value: ChildDepthBudget) -> Self
Converts to this type from the input type.
Source§impl From<MaxChildDepth> for ChildDepthBudget
impl From<MaxChildDepth> for ChildDepthBudget
Source§fn from(value: MaxChildDepth) -> Self
fn from(value: MaxChildDepth) -> Self
Converts to this type from the input type.
Source§impl Ord for ChildDepthBudget
impl Ord for ChildDepthBudget
Source§fn cmp(&self, other: &ChildDepthBudget) -> Ordering
fn cmp(&self, other: &ChildDepthBudget) -> Ordering
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 PartialEq for ChildDepthBudget
impl PartialEq for ChildDepthBudget
Source§impl PartialOrd for ChildDepthBudget
impl PartialOrd for ChildDepthBudget
Source§impl Serialize for ChildDepthBudget
impl Serialize for ChildDepthBudget
impl StructuralPartialEq for ChildDepthBudget
Auto Trait Implementations§
impl Freeze for ChildDepthBudget
impl RefUnwindSafe for ChildDepthBudget
impl Send for ChildDepthBudget
impl Sync for ChildDepthBudget
impl Unpin for ChildDepthBudget
impl UnsafeUnpin for ChildDepthBudget
impl UnwindSafe for ChildDepthBudget
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