pub struct TargetList(/* private fields */);
Implementations§
Source§impl TargetList
impl TargetList
pub fn add(&self, target: &Atom, flags: u32, info: u32)
pub fn add_image_targets(&self, info: u32, writable: bool)
pub fn add_rich_text_targets<P: IsA<TextBuffer>>( &self, info: u32, deserializable: bool, buffer: &P, )
pub fn add_text_targets(&self, info: u32)
pub fn add_uri_targets(&self, info: u32)
pub fn find(&self, target: &Atom) -> Option<u32>
pub fn remove(&self, target: &Atom)
Source§impl TargetList
impl TargetList
pub fn new(targets: &[TargetEntry]) -> Self
Trait Implementations§
Source§impl Clone for TargetList
impl Clone for TargetList
Source§fn clone(&self) -> TargetList
fn clone(&self) -> TargetList
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for TargetList
impl Debug for TargetList
Source§impl Hash for TargetList
impl Hash for TargetList
Source§impl Ord for TargetList
impl Ord for TargetList
Source§fn cmp(&self, other: &TargetList) -> Ordering
fn cmp(&self, other: &TargetList) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for TargetList
impl PartialEq for TargetList
Source§impl PartialOrd for TargetList
impl PartialOrd for TargetList
Source§impl StaticType for TargetList
impl StaticType for TargetList
Source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.impl Eq for TargetList
impl StructuralPartialEq for TargetList
Auto Trait Implementations§
impl Freeze for TargetList
impl RefUnwindSafe for TargetList
impl !Send for TargetList
impl !Sync for TargetList
impl Unpin for TargetList
impl UnwindSafe for TargetList
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