pub enum LiteralKind {
Http,
Www,
Email,
}Expand description
The kind of an autolink literal.
Derived with the same disambiguation the parser used
(an @-run that scans as a full email wins over www.);
public so renderers/printers derive the href scheme identically.
Variants§
Http
http:// / https://: the text already carries its scheme.
Www
www.…: prepend http://.
Bare email: prepend mailto:.
Trait Implementations§
Source§impl Clone for LiteralKind
impl Clone for LiteralKind
impl Copy for LiteralKind
Source§impl Debug for LiteralKind
impl Debug for LiteralKind
impl Eq for LiteralKind
Source§impl PartialEq for LiteralKind
impl PartialEq for LiteralKind
impl StructuralPartialEq for LiteralKind
Auto Trait Implementations§
impl Freeze for LiteralKind
impl RefUnwindSafe for LiteralKind
impl Send for LiteralKind
impl Sync for LiteralKind
impl Unpin for LiteralKind
impl UnsafeUnpin for LiteralKind
impl UnwindSafe for LiteralKind
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