Skip to main content

member

Function member 

Source
pub fn member<V: Source + Sink>(
    ast: &Ast,
    node: &MemberNode,
    type_: Id<TypeNode>,
    path: &str,
) -> Result<V, ProbeError>
Expand description

The default value of one member: its @default, or its type’s.

§Errors

ProbeError when the type has no default this project can name, or when a @default and the member’s type disagree.