pub struct GeneralPolicy;Expand description
Policy for general containers - allows all elements EXCEPT Sessions
Used by: Definition.children, Annotation.children, ListItem.children
Trait Implementations§
Source§impl Clone for GeneralPolicy
impl Clone for GeneralPolicy
Source§fn clone(&self) -> GeneralPolicy
fn clone(&self) -> GeneralPolicy
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 moreSource§impl ContainerPolicy for GeneralPolicy
impl ContainerPolicy for GeneralPolicy
Source§const ALLOWS_SESSIONS: bool = false
const ALLOWS_SESSIONS: bool = false
Whether this container allows Session elements
Source§const ALLOWS_ANNOTATIONS: bool = true
const ALLOWS_ANNOTATIONS: bool = true
Whether this container allows Annotation elements
Source§const POLICY_NAME: &'static str = "GeneralPolicy"
const POLICY_NAME: &'static str = "GeneralPolicy"
Human-readable name for error messages
Source§type ContentType = ContentElement
type ContentType = ContentElement
The typed content variant this policy accepts
Source§impl Debug for GeneralPolicy
impl Debug for GeneralPolicy
Source§impl PartialEq for GeneralPolicy
impl PartialEq for GeneralPolicy
impl Copy for GeneralPolicy
impl Eq for GeneralPolicy
impl StructuralPartialEq for GeneralPolicy
Auto Trait Implementations§
impl Freeze for GeneralPolicy
impl RefUnwindSafe for GeneralPolicy
impl Send for GeneralPolicy
impl Sync for GeneralPolicy
impl Unpin for GeneralPolicy
impl UnwindSafe for GeneralPolicy
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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