pub struct FunctionFact { /* private fields */ }Expand description
A function declaration with structured signature and decoded body text.
Implementations§
Source§impl FunctionFact
impl FunctionFact
Sourcepub const fn new(
id: FunctionId,
signature: FunctionSignature,
body: FunctionBody,
) -> Self
pub const fn new( id: FunctionId, signature: FunctionSignature, body: FunctionBody, ) -> Self
Construct a validated function declaration.
Sourcepub const fn id(&self) -> &FunctionId
pub const fn id(&self) -> &FunctionId
Return the function identity.
Sourcepub const fn signature(&self) -> &FunctionSignature
pub const fn signature(&self) -> &FunctionSignature
Return the structured signature.
Sourcepub const fn body(&self) -> &FunctionBody
pub const fn body(&self) -> &FunctionBody
Return exact decoded provider body text.
Sourcepub fn schema_references(&self) -> impl Iterator<Item = &Label>
pub fn schema_references(&self) -> impl Iterator<Item = &Label>
Iterate schema labels referenced by the signature.
Trait Implementations§
Source§impl Clone for FunctionFact
impl Clone for FunctionFact
Source§fn clone(&self) -> FunctionFact
fn clone(&self) -> FunctionFact
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 moreSource§impl Debug for FunctionFact
impl Debug for FunctionFact
impl Eq for FunctionFact
Source§impl PartialEq for FunctionFact
impl PartialEq for FunctionFact
Source§impl Serialize for FunctionFact
impl Serialize for FunctionFact
impl StructuralPartialEq for FunctionFact
Auto Trait Implementations§
impl Freeze for FunctionFact
impl RefUnwindSafe for FunctionFact
impl Send for FunctionFact
impl Sync for FunctionFact
impl Unpin for FunctionFact
impl UnsafeUnpin for FunctionFact
impl UnwindSafe for FunctionFact
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