pub struct MaxShortcutDepth(/* private fields */);Expand description
The maximum depth at which shortcuts will be resolved.
During the shortcut expansion, if the depth is greater than max_shortcut_depth, only the already expanded selectors until the maximum depth will be added.
By default it is set to 5.
Implementations§
Trait Implementations§
Source§impl Clone for MaxShortcutDepth
impl Clone for MaxShortcutDepth
Source§fn clone(&self) -> MaxShortcutDepth
fn clone(&self) -> MaxShortcutDepth
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 MaxShortcutDepth
impl Debug for MaxShortcutDepth
Source§impl Default for MaxShortcutDepth
impl Default for MaxShortcutDepth
Source§impl<'de> Deserialize<'de> for MaxShortcutDepth
impl<'de> Deserialize<'de> for MaxShortcutDepth
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
Source§impl From<MaxShortcutDepth> for usize
impl From<MaxShortcutDepth> for usize
Source§fn from(val: MaxShortcutDepth) -> Self
fn from(val: MaxShortcutDepth) -> Self
Converts to this type from the input type.
Source§impl From<usize> for MaxShortcutDepth
impl From<usize> for MaxShortcutDepth
Source§impl PartialEq for MaxShortcutDepth
impl PartialEq for MaxShortcutDepth
Source§impl Serialize for MaxShortcutDepth
impl Serialize for MaxShortcutDepth
impl Copy for MaxShortcutDepth
impl Eq for MaxShortcutDepth
impl StructuralPartialEq for MaxShortcutDepth
Auto Trait Implementations§
impl Freeze for MaxShortcutDepth
impl RefUnwindSafe for MaxShortcutDepth
impl Send for MaxShortcutDepth
impl Sync for MaxShortcutDepth
impl Unpin for MaxShortcutDepth
impl UnwindSafe for MaxShortcutDepth
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