pub struct CitizenInfo {
pub symbol: &'static str,
pub version: u32,
pub crate_name: &'static str,
pub arity: usize,
pub install: InstallFn,
pub conformance: fn(&mut Cx) -> Result<()>,
}Expand description
One inventory-registered citizen’s static registry row.
Collected via inventory so every linked crate’s citizens are discoverable
without a central list. Carries identity metadata plus the install and
conformance hooks driving registration and the strict gate.
Fields§
§symbol: &'static strThe citizen’s namespace/name symbol text.
version: u32The citizen’s encoding version.
crate_name: &'static strThe crate that defined the citizen.
arity: usizeNumber of constructor fields (excluding the version argument).
install: InstallFnHook that installs the citizen’s class into a linker.
conformance: fn(&mut Cx) -> Result<()>Hook that runs the citizen’s conformance fixture.
Trait Implementations§
Source§impl Clone for CitizenInfo
impl Clone for CitizenInfo
Source§fn clone(&self) -> CitizenInfo
fn clone(&self) -> CitizenInfo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Collect for CitizenInfo
impl Copy for CitizenInfo
Auto Trait Implementations§
impl Freeze for CitizenInfo
impl RefUnwindSafe for CitizenInfo
impl Send for CitizenInfo
impl Sync for CitizenInfo
impl Unpin for CitizenInfo
impl UnsafeUnpin for CitizenInfo
impl UnwindSafe for CitizenInfo
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