pub struct RelativeIDListRef<'a>(pub *const ITEMIDLIST, _);Expand description
This has the same memory representation as RelativeIDList,
but represents a borrowed ID list pointer.
You should only use this in C arrays/structs, otherwise &RelativeIDList is enough and more idiomatic.
Tuple Fields§
§0: *const ITEMIDLISTImplementations§
Methods from Deref<Target = RelativeIDList>§
Sourcepub fn to_child_ref(&self) -> ChildIDRef<'_>
pub fn to_child_ref(&self) -> ChildIDRef<'_>
Converts this RelativeIDList to a ChildIDRef without transferring ownership.
§Safety
This is safe as most APIs either check or don’t care.
Trait Implementations§
Source§impl<'a> Clone for RelativeIDListRef<'a>
impl<'a> Clone for RelativeIDListRef<'a>
Source§fn clone(&self) -> RelativeIDListRef<'a>
fn clone(&self) -> RelativeIDListRef<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'a> Copy for RelativeIDListRef<'a>
Source§impl<'a> Debug for RelativeIDListRef<'a>
impl<'a> Debug for RelativeIDListRef<'a>
Source§impl<'a> Deref for RelativeIDListRef<'a>
impl<'a> Deref for RelativeIDListRef<'a>
Source§impl<'a> From<&'a RelativeIDList> for RelativeIDListRef<'a>
impl<'a> From<&'a RelativeIDList> for RelativeIDListRef<'a>
Source§fn from(id: &'a RelativeIDList) -> Self
fn from(id: &'a RelativeIDList) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a> !Send for RelativeIDListRef<'a>
impl<'a> !Sync for RelativeIDListRef<'a>
impl<'a> Freeze for RelativeIDListRef<'a>
impl<'a> RefUnwindSafe for RelativeIDListRef<'a>
impl<'a> Unpin for RelativeIDListRef<'a>
impl<'a> UnsafeUnpin for RelativeIDListRef<'a>
impl<'a> UnwindSafe for RelativeIDListRef<'a>
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