Skip to main content

direct_speak

Function direct_speak 

Source
pub(crate) fn direct_speak<T: SingleSpeaker>(explicit_dog: &T)
Expand description

Monomorphic target resolved at compile time via generics.

§Type Parameters

  • T - Concrete type implementing SingleSpeaker; a distinct copy of this function is generated per instantiation, so speak is called directly with no dynamic dispatch.

§Arguments

  • explicit_dog - Reference to the concrete speaker instance.