[][src]Struct uclicious::raw::priority::Priority

pub struct 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

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: FromObject<T>, 
[src]

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.