pub struct Breadcrumb { /* private fields */ }Expand description
Breadcrumb primitive.
Implementations§
Source§impl Breadcrumb
impl Breadcrumb
Sourcepub fn new(
items: impl IntoIterator<Item = impl AsRef<str>>,
) -> Result<Self, SchemaValueError>
pub fn new( items: impl IntoIterator<Item = impl AsRef<str>>, ) -> Result<Self, SchemaValueError>
Creates a breadcrumb trail from non-empty labels.
§Errors
Returns SchemaValueError when the trail is empty or contains empty labels.
Sourcepub const fn schema_type(&self) -> &'static str
pub const fn schema_type(&self) -> &'static str
Returns the schema-like type label.
Trait Implementations§
Source§impl Clone for Breadcrumb
impl Clone for Breadcrumb
Source§fn clone(&self) -> Breadcrumb
fn clone(&self) -> Breadcrumb
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 moreSource§impl Debug for Breadcrumb
impl Debug for Breadcrumb
Source§impl PartialEq for Breadcrumb
impl PartialEq for Breadcrumb
Source§fn eq(&self, other: &Breadcrumb) -> bool
fn eq(&self, other: &Breadcrumb) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for Breadcrumb
impl StructuralPartialEq for Breadcrumb
Auto Trait Implementations§
impl Freeze for Breadcrumb
impl RefUnwindSafe for Breadcrumb
impl Send for Breadcrumb
impl Sync for Breadcrumb
impl Unpin for Breadcrumb
impl UnsafeUnpin for Breadcrumb
impl UnwindSafe for Breadcrumb
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