pub struct PgoAnnotatedFunction {
pub name: String,
pub entry_count: u64,
pub inline_hint: Option<InlineHint>,
pub hot_attributes: Vec<String>,
}Fields§
§name: String§entry_count: u64§inline_hint: Option<InlineHint>§hot_attributes: Vec<String>Implementations§
Source§impl PgoAnnotatedFunction
impl PgoAnnotatedFunction
pub fn new(name: impl Into<String>, entry_count: u64) -> Self
pub fn with_inline_hint(self, hint: InlineHint) -> Self
pub fn add_hot_attribute(&mut self, attr: impl Into<String>)
pub fn emit_llvm_attrs(&self) -> String
Trait Implementations§
Source§impl Clone for PgoAnnotatedFunction
impl Clone for PgoAnnotatedFunction
Source§fn clone(&self) -> PgoAnnotatedFunction
fn clone(&self) -> PgoAnnotatedFunction
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for PgoAnnotatedFunction
impl RefUnwindSafe for PgoAnnotatedFunction
impl Send for PgoAnnotatedFunction
impl Sync for PgoAnnotatedFunction
impl Unpin for PgoAnnotatedFunction
impl UnsafeUnpin for PgoAnnotatedFunction
impl UnwindSafe for PgoAnnotatedFunction
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