[−][src]Struct uclicious::raw::priority::Priority
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.
Methods
impl Priority
[src]
pub fn new(priority: u32) -> Priority
[src]
Create a Priority. Values outside of 0..16 range will be changed to nearest "legal" number.
pub fn as_c_uint(self) -> c_uint
[src]
Trait Implementations
impl Clone for Priority
[src]
impl Copy for Priority
[src]
impl Debug for Priority
[src]
impl Default for Priority
[src]
impl Eq for Priority
[src]
impl From<i16> for Priority
[src]
impl From<i32> for Priority
[src]
impl From<i64> for Priority
[src]
impl From<i8> for Priority
[src]
impl From<u16> for Priority
[src]
impl From<u32> for Priority
[src]
impl From<u64> for Priority
[src]
impl From<u8> for Priority
[src]
impl PartialEq<Priority> for Priority
[src]
impl StructuralEq for Priority
[src]
impl StructuralPartialEq for Priority
[src]
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: FromObject<T>,
[src]
U: FromObject<T>,
fn try_into(Self) -> Result<U, ObjectError>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,