[]Struct pango::Coverage

pub struct Coverage(_, _);

The Coverage structure represents a map from Unicode characters to CoverageLevel. It is an opaque structure with no public fields.

Implementations

impl Coverage[src]

pub fn new() -> Coverage[src]

Create a new Coverage

Returns

the newly allocated Coverage, initialized to CoverageLevel::None with a reference count of one, which should be freed with Coverage::unref.

pub fn copy(&self) -> Option<Coverage>[src]

Copy an existing Coverage. (This function may now be unnecessary since we refcount the structure. File a bug if you use it.)

Returns

the newly allocated Coverage, with a reference count of one, which should be freed with Coverage::unref.

pub fn get(&self, index_: i32) -> CoverageLevel[src]

Determine whether a particular index is covered by self

index_

the index to check

Returns

the coverage level of self for character index_.

pub fn max(&self, other: &Coverage)[src]

Set the coverage for each index in self to be the max (better) value of the current coverage for the index and the coverage for the corresponding index in other.

Deprecated since 1.44

This function does nothing

other

another Coverage

pub fn set(&self, index_: i32, level: CoverageLevel)[src]

Modify a particular index within self

index_

the index to modify

level

the new level for index_

pub fn to_bytes(&self) -> Vec<u8>[src]

Convert a Coverage structure into a flat binary format

Deprecated since 1.44

This returns None

bytes

location to store result (must be freed with g_free)

n_bytes

location to store size of result

pub fn from_bytes(bytes: &[u8]) -> Option<Coverage>[src]

Convert data generated from Coverage::to_bytes back to a Coverage

Deprecated since 1.44

This returns None

bytes

binary data representing a Coverage

n_bytes

the size of bytes in bytes

Returns

a newly allocated Coverage, or None if the data was invalid.

Trait Implementations

impl Clone for Coverage

impl Debug for Coverage

impl Default for Coverage[src]

impl Display for Coverage[src]

impl Eq for Coverage

impl Hash for Coverage

impl Ord for Coverage

impl<T: ObjectType> PartialEq<T> for Coverage

impl<T: ObjectType> PartialOrd<T> for Coverage

impl StaticType for Coverage

Auto Trait Implementations

impl RefUnwindSafe for Coverage

impl !Send for Coverage

impl !Sync for Coverage

impl Unpin for Coverage

impl UnwindSafe for Coverage

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<Super, Sub> CanDowncast<Sub> for Super where
    Sub: IsA<Super>,
    Super: IsA<Super>, 

impl<T> Cast for T where
    T: ObjectType, 

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

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

impl<T> ObjectExt for T where
    T: ObjectType, 

impl<'a, T> ToGlibContainerFromSlice<'a, *const GList> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 

type Storage = (Option<List>, Vec<Stash<'a, <T as GlibPtrDefault>::GlibType, T>>)

impl<'a, T> ToGlibContainerFromSlice<'a, *const GPtrArray> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 

type Storage = (Option<PtrArray>, Vec<Stash<'a, <T as GlibPtrDefault>::GlibType, T>>)

impl<'a, T> ToGlibContainerFromSlice<'a, *mut GArray> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 

type Storage = (Option<Array>, Vec<Stash<'a, <T as GlibPtrDefault>::GlibType, T>>)

impl<'a, T> ToGlibContainerFromSlice<'a, *mut GList> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 

type Storage = (Option<List>, Vec<Stash<'a, <T as GlibPtrDefault>::GlibType, T>>)

impl<'a, T> ToGlibContainerFromSlice<'a, *mut GPtrArray> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 

type Storage = (Option<PtrArray>, Vec<Stash<'a, <T as GlibPtrDefault>::GlibType, T>>)

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToSendValue for T where
    T: ToValue + SetValue + Send + ?Sized

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> ToValue for T where
    T: SetValue + ?Sized

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: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.