pub struct Comdat(/* private fields */);
Expand description
A Comdat
determines how to resolve duplicate sections when linking.
Implementations§
source§impl Comdat
impl Comdat
sourcepub unsafe fn new(comdat: LLVMComdatRef) -> Self
pub unsafe fn new(comdat: LLVMComdatRef) -> Self
Creates a new Comdat
type from a raw pointer.
sourcepub fn as_mut_ptr(&self) -> LLVMComdatRef
pub fn as_mut_ptr(&self) -> LLVMComdatRef
Acquires the underlying raw pointer belonging to this Comdat
type.
sourcepub fn get_selection_kind(self) -> ComdatSelectionKind
pub fn get_selection_kind(self) -> ComdatSelectionKind
Gets what kind of Comdat
this is.
sourcepub fn set_selection_kind(self, kind: ComdatSelectionKind)
pub fn set_selection_kind(self, kind: ComdatSelectionKind)
Sets what kind of Comdat
this should be.
Trait Implementations§
source§impl PartialEq for Comdat
impl PartialEq for Comdat
impl Copy for Comdat
impl Eq for Comdat
impl StructuralPartialEq for Comdat
Auto Trait Implementations§
impl RefUnwindSafe for Comdat
impl !Send for Comdat
impl !Sync for Comdat
impl Unpin for Comdat
impl UnwindSafe for Comdat
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
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more