pub fn anchor(
        &self,
        path: impl AsRef<AbsoluteSystemPath>,
    ) -> Result<AnchoredSystemPathBuf, PathError> {
        AnchoredSystemPathBuf::new(self, path)
    }
Anchors `path` at `self`.

# Arguments

* `path`: The path to be anchored at `self`

returns: Result<AnchoredSystemPathBuf, PathError>

# Examples

```
use std::path::Path;
use turbopath::{AbsoluteSystemPathBuf, AnchoredSystemPathBuf};
#[cfg(not(windows))]
{
let base = AbsoluteSystemPathBuf::new("/Users/user").unwrap();
let anchored_path = AbsoluteSystemPathBuf::new("/Users/user/Documents").unwrap();
let anchored_path = base.anchor(&anchored_path).unwrap();
assert_eq!(anchored_path.as_str(), "Documents");
}

#[cfg(windows)]
{
let base = AbsoluteSystemPathBuf::new("C:\\Users\\user").unwrap();
let anchored_path = AbsoluteSystemPathBuf::new("C:\\Users\\user\\Documents").unwrap();
let anchored_path = base.anchor(&anchored_path).unwrap();
assert_eq!(anchored_path.as_str(), "Documents");
}
```
crates/turborepo-paths/src/absolute_system_path_buf.rs