pub fn library_in_workspace(crate_id: &CrateId, where: Target, workspace: &Path) -> Option<Path> {
    debug!("library_in_workspace: checking whether a library named {} exists",
           crate_id.name);

    let dir_to_search = match where {
        Build => target_build_dir(workspace).join(crate_id.path.as_slice()),
        Install => target_lib_dir(workspace)
    };

    library_in(crate_id, &dir_to_search)
}
/// `workspace` is used to figure out the directory to search.
/// `name` is taken as the link name of the library.
`workspace` is used to figure out the directory to search.
`name` is taken as the link name of the library.
` workspace ` is used to figure out the directory to search . ` name ` is taken as the link name of the library .
pub fn library_in_workspace(crate_id: &CrateId, where: Target, workspace: &Path) -> Option<Path> {
    debug!("library_in_workspace: checking whether a library named {} exists",
           crate_id.name);
    let dir_to_search = match where {
        Build => target_build_dir(workspace).join(crate_id.path.as_slice()),
        Install => target_lib_dir(workspace)
    };
    library_in(crate_id, &dir_to_search)
}
pub fn library_in_workspace ( crate_id : & CrateId , where : Target , workspace : & Path ) -> Option < Path > { debug ! ( " " crate_id name ) ; let dir_to_search = match where { Build => target_build_dir ( workspace ) . join ( crate_id . path . as_slice ( ) ) , Install => target_lib_dir ( workspace ) } ; library_in ( crate_id , & dir_to_search ) }
`workspace` is used to figure out the directory to search.
` workspace ` is used to figure out the directory to search .
crate_id
&CrateId
where
Target
workspace
&Path
crate_id
&CrateId
where
Target
workspace
&Path