pub struct PlainScopeData;Expand description
Scope data used by the plain-text adapter.
Plain text has no preserved regions or block boundaries, and inline markup
such as <ruby> is not meaningful in a plain-text stream. Reporting
ScopeData::allows_inline_markup as false lets scope-aware renderers
fall back to parenthesized text before any RenderedToken::Ruby reaches
the plain-text writer.
Trait Implementations§
Source§impl Clone for PlainScopeData
impl Clone for PlainScopeData
Source§fn clone(&self) -> PlainScopeData
fn clone(&self) -> PlainScopeData
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 PlainScopeData
impl Debug for PlainScopeData
Source§impl Default for PlainScopeData
impl Default for PlainScopeData
Source§fn default() -> PlainScopeData
fn default() -> PlainScopeData
Returns the “default value” for a type. Read more
Source§impl PartialEq for PlainScopeData
impl PartialEq for PlainScopeData
Source§fn eq(&self, other: &PlainScopeData) -> bool
fn eq(&self, other: &PlainScopeData) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl ScopeData for PlainScopeData
impl ScopeData for PlainScopeData
Source§fn is_preserve(&self) -> bool
fn is_preserve(&self) -> bool
Returns whether text inside this scope must pass through untouched.
Source§fn allows_inline_markup(&self) -> bool
fn allows_inline_markup(&self) -> bool
Returns whether inline markup may be inserted inside this scope. Read more
Source§fn is_block_boundary(&self) -> bool
fn is_block_boundary(&self) -> bool
Returns whether this scope resets block-oriented stateful stages.
Source§fn is_section_boundary(&self) -> bool
fn is_section_boundary(&self) -> bool
Returns whether this scope resets section-oriented stateful stages.
impl Copy for PlainScopeData
impl Eq for PlainScopeData
impl StructuralPartialEq for PlainScopeData
Auto Trait Implementations§
impl Freeze for PlainScopeData
impl RefUnwindSafe for PlainScopeData
impl Send for PlainScopeData
impl Sync for PlainScopeData
impl Unpin for PlainScopeData
impl UnsafeUnpin for PlainScopeData
impl UnwindSafe for PlainScopeData
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.