[]Struct ostree::CollectionRef

pub struct CollectionRef(_);

Methods

impl CollectionRef[src]

pub fn new(collection_id: Option<&str>, ref_name: &str) -> Option<CollectionRef>[src]

impl CollectionRef[src]

pub fn collection_id(&self) -> Option<&CStr>[src]

Get the collection ID from this CollectionRef.

Returns

Since the value may not be valid UTF-8, &CStr is returned. You can safely turn it into a &str using the as_str method.

If no collection ID was set in the CollectionRef, None is returned.

pub fn ref_name(&self) -> &CStr[src]

Get the ref name from this CollectionRef.

Returns

Since the value may not be valid UTF-8, &CStr is returned. You can safely turn it into a &str using the as_str method.

Trait Implementations

impl Clone for CollectionRef

impl Debug for CollectionRef[src]

impl Eq for CollectionRef[src]

impl Hash for CollectionRef[src]

impl Ord for CollectionRef[src]

impl PartialEq<CollectionRef> for CollectionRef[src]

impl PartialOrd<CollectionRef> for CollectionRef[src]

impl StaticType for CollectionRef

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> ToValue for T where
    T: SetValue + ?Sized
[src]

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

type Error = !

The type returned in the event of a conversion error.

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.