pub struct PriorityRange {
pub highest: char,
pub lowest: char,
pub default: char,
}Expand description
A file’s priority cookies, highest to lowest, and the priority of a
heading without one: #+PRIORITIES: A C B (org-priority-highest,
-lowest and -default), else the configured range.
Fields§
§highest: char§lowest: char§default: charImplementations§
Source§impl PriorityRange
impl PriorityRange
Sourcepub fn from_settings(settings: &Settings) -> Self
pub fn from_settings(settings: &Settings) -> Self
The configured range (highest_priority, lowest_priority,
default_priority).
Sourcepub fn contains(&self, priority: &str) -> bool
pub fn contains(&self, priority: &str) -> bool
Whether priority is one cookie character within the range.
Every cookie from highest to lowest, as [A, B, C].
Trait Implementations§
Source§impl Clone for PriorityRange
impl Clone for PriorityRange
impl Copy for PriorityRange
Source§impl Debug for PriorityRange
impl Debug for PriorityRange
impl Eq for PriorityRange
Source§impl PartialEq for PriorityRange
impl PartialEq for PriorityRange
impl StructuralPartialEq for PriorityRange
Auto Trait Implementations§
impl Freeze for PriorityRange
impl RefUnwindSafe for PriorityRange
impl Send for PriorityRange
impl Sync for PriorityRange
impl Unpin for PriorityRange
impl UnsafeUnpin for PriorityRange
impl UnwindSafe for PriorityRange
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