Struct Breadcrumb
pub struct Breadcrumb { /* private fields */ }Expand description
Breadcrumb primitive.
Implementations§
§impl Breadcrumb
impl Breadcrumb
pub fn new(
items: impl IntoIterator<Item = impl AsRef<str>>,
) -> Result<Breadcrumb, SchemaValueError>
pub fn new( items: impl IntoIterator<Item = impl AsRef<str>>, ) -> Result<Breadcrumb, SchemaValueError>
Creates a breadcrumb trail from non-empty labels.
§Errors
Returns [SchemaValueError] when the trail is empty or contains empty labels.
pub const fn schema_type(&self) -> &'static str
pub const fn schema_type(&self) -> &'static str
Returns the schema-like type label.
Trait Implementations§
§impl Clone for Breadcrumb
impl Clone for Breadcrumb
§fn clone(&self) -> Breadcrumb
fn clone(&self) -> Breadcrumb
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 more§impl Debug for Breadcrumb
impl Debug for Breadcrumb
§impl PartialEq for Breadcrumb
impl PartialEq for Breadcrumb
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