Skip to main content

bind

Function bind 

Source
pub fn bind(
    item: &Item<'_>,
    text: &str,
    project: &str,
    sources: Vec<SourceRef>,
) -> bool
Expand description

Bind text, as its store keeps it, to sources. Returns whether the item is bound now. false — the item stays originless — when the text or a source is restricted or withheld, when admission would rewrite the text (the binding would be of another text), without a project under protection, or when the register refuses the write.