pub struct MarkupCodec { /* private fields */ }Expand description
Strict runtime codec for one markup backend.
Implementations§
Source§impl MarkupCodec
impl MarkupCodec
Sourcepub fn new(backend: Arc<dyn MarkupBackend>) -> Self
pub fn new(backend: Arc<dyn MarkupBackend>) -> Self
Create a codec backed by backend.
Sourcepub fn backend_id(&self) -> BackendId
pub fn backend_id(&self) -> BackendId
Return this codec’s backend id.
Trait Implementations§
Source§impl Decoder for MarkupCodec
impl Decoder for MarkupCodec
Auto Trait Implementations§
impl !RefUnwindSafe for MarkupCodec
impl !UnwindSafe for MarkupCodec
impl Freeze for MarkupCodec
impl Send for MarkupCodec
impl Sync for MarkupCodec
impl Unpin for MarkupCodec
impl UnsafeUnpin for MarkupCodec
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more