pub struct Priority(_);
Expand description
Priorities are used by UCL parser to manage the policy of objects rewriting during including other files as following:
- If we have two objects with the same priority then we form an implicit array
- If a new object has bigger priority then we overwrite an old one
- If a new object has lower priority then we ignore it
By default, the priority of top-level object is set to zero (the lowest priority). Currently, you can define up to 16 priorities (from 0 to 16). Includes with bigger priorities will rewrite keys from the objects with lower priorities as specified by the policy.
Implementations§
Trait Implementations§
source§impl PartialEq<Priority> for Priority
impl PartialEq<Priority> for Priority
impl Copy for Priority
impl Eq for Priority
impl StructuralEq for Priority
impl StructuralPartialEq for Priority
Auto Trait Implementations§
impl RefUnwindSafe for Priority
impl Send for Priority
impl Sync for Priority
impl Unpin for Priority
impl UnwindSafe for Priority
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