pub struct Field<'a>(/* private fields */);Expand description
Individual field of an MCF hash, delimited by $.
Fields are constrained to characters in the regexp range [A-Za-z0-9./+=,\-].
Implementations§
Source§impl<'a> Field<'a>
impl<'a> Field<'a>
Sourcepub fn new(s: &'a str) -> Result<Self>
pub fn new(s: &'a str) -> Result<Self>
Create a new Field, validating the provided characters are in the allowed range.
Trait Implementations§
Source§impl<'a> Ord for Field<'a>
impl<'a> Ord for Field<'a>
Source§impl<'a> PartialOrd for Field<'a>
impl<'a> PartialOrd for Field<'a>
impl<'a> Copy for Field<'a>
impl<'a> Eq for Field<'a>
impl<'a> StructuralPartialEq for Field<'a>
Auto Trait Implementations§
impl<'a> Freeze for Field<'a>
impl<'a> RefUnwindSafe for Field<'a>
impl<'a> Send for Field<'a>
impl<'a> Sync for Field<'a>
impl<'a> Unpin for Field<'a>
impl<'a> UnwindSafe for Field<'a>
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