pub struct GoMethodPolicy {
pub exported_method_names: BTreeSet<String>,
pub tagged_method_names: BTreeSet<String>,
}Fields§
§exported_method_names: BTreeSet<String>§tagged_method_names: BTreeSet<String>Implementations§
Source§impl GoMethodPolicy
impl GoMethodPolicy
pub fn exports_method(&self, method_name: &str) -> bool
pub fn for_definitions<'a>( &self, definitions: impl Iterator<Item = (&'a Symbol, &'a Definition)>, ) -> Self
pub fn compute<'a>( definitions: impl Iterator<Item = (&'a Symbol, &'a Definition)>, ) -> Self
Trait Implementations§
Source§impl Clone for GoMethodPolicy
impl Clone for GoMethodPolicy
Source§impl Debug for GoMethodPolicy
impl Debug for GoMethodPolicy
Source§impl Default for GoMethodPolicy
impl Default for GoMethodPolicy
impl Eq for GoMethodPolicy
Source§impl Hash for GoMethodPolicy
impl Hash for GoMethodPolicy
Source§impl PartialEq for GoMethodPolicy
impl PartialEq for GoMethodPolicy
impl StructuralPartialEq for GoMethodPolicy
Auto Trait Implementations§
impl Forget for GoMethodPolicy
impl Freeze for GoMethodPolicywhere
*const LeafNode<String, SetValZST> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, SetValZST)>>: Freeze,
impl Move for GoMethodPolicy
impl RefUnwindSafe for GoMethodPolicy
impl Send for GoMethodPolicy
impl Sync for GoMethodPolicy
impl Unpin for GoMethodPolicy
impl UnsafeUnpin for GoMethodPolicywhere
*const LeafNode<String, SetValZST> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, SetValZST)>>: UnsafeUnpin,
impl UnwindSafe for GoMethodPolicy
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