pub struct InlineAnnotationRegistry { /* private fields */ }Implementations§
Source§impl InlineAnnotationRegistry
impl InlineAnnotationRegistry
pub fn new() -> Self
pub fn register(&mut self, fn_name: impl Into<String>, ann: InlineAnnotation)
pub fn get(&self, fn_name: &str) -> &InlineAnnotation
pub fn has_annotation(&self, fn_name: &str) -> bool
pub fn apply(&self, fn_name: &str, decision: InlineDecision) -> InlineDecision
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
Trait Implementations§
Source§impl Debug for InlineAnnotationRegistry
impl Debug for InlineAnnotationRegistry
Source§impl Default for InlineAnnotationRegistry
impl Default for InlineAnnotationRegistry
Source§fn default() -> InlineAnnotationRegistry
fn default() -> InlineAnnotationRegistry
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for InlineAnnotationRegistry
impl RefUnwindSafe for InlineAnnotationRegistry
impl Send for InlineAnnotationRegistry
impl Sync for InlineAnnotationRegistry
impl Unpin for InlineAnnotationRegistry
impl UnsafeUnpin for InlineAnnotationRegistry
impl UnwindSafe for InlineAnnotationRegistry
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