pub fn parse(spec: &BStr, operation: Operation) -> Result<RefSpecRef<'_>, Error>
Parse spec for use in operation and return it if it is valid.
spec
operation