Enum ruma_html::ListBehavior
source · pub enum ListBehavior {
Override,
Add,
}
Expand description
The behavior of the setting.
Variants§
Override
The list replaces the default list of the current mode, if one is set.
If no mode is set, this is the full allow list.
Add
The list is added to the default list of the current mode, if one is set.
If no mode is set, this is the full allow list.
Trait Implementations§
source§impl Clone for ListBehavior
impl Clone for ListBehavior
source§fn clone(&self) -> ListBehavior
fn clone(&self) -> ListBehavior
Returns a copy 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 Debug for ListBehavior
impl Debug for ListBehavior
source§impl PartialEq for ListBehavior
impl PartialEq for ListBehavior
source§fn eq(&self, other: &ListBehavior) -> bool
fn eq(&self, other: &ListBehavior) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ListBehavior
impl Eq for ListBehavior
impl StructuralPartialEq for ListBehavior
Auto Trait Implementations§
impl Freeze for ListBehavior
impl RefUnwindSafe for ListBehavior
impl Send for ListBehavior
impl Sync for ListBehavior
impl Unpin for ListBehavior
impl UnwindSafe for ListBehavior
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)