pub struct LevelOverride {
pub level: usize,
pub override_start: Option<usize>,
pub override_level: Option<Level>,
}
Fields§
§level: usize
§override_start: Option<usize>
§override_level: Option<Level>
Implementations§
Source§impl LevelOverride
impl LevelOverride
pub fn new(level: usize) -> LevelOverride
pub fn start(self, start: usize) -> LevelOverride
pub fn level(self, override_level: Level) -> LevelOverride
Trait Implementations§
Source§impl Clone for LevelOverride
impl Clone for LevelOverride
Source§fn clone(&self) -> LevelOverride
fn clone(&self) -> LevelOverride
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 LevelOverride
impl Debug for LevelOverride
Source§impl ElementReader for LevelOverride
impl ElementReader for LevelOverride
fn read<R: Read>( r: &mut EventReader<R>, attrs: &[OwnedAttribute], ) -> Result<Self, ReaderError>
Source§impl PartialEq for LevelOverride
impl PartialEq for LevelOverride
Source§impl Serialize for LevelOverride
impl Serialize for LevelOverride
impl StructuralPartialEq for LevelOverride
Auto Trait Implementations§
impl Freeze for LevelOverride
impl RefUnwindSafe for LevelOverride
impl Send for LevelOverride
impl Sync for LevelOverride
impl Unpin for LevelOverride
impl UnwindSafe for LevelOverride
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