/*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT license.
*/usethiserror::Error;#[derive(Debug, Clone, Copy, Default, Error)]#[error(transparent)]#[repr(transparent)]// A wrapper type to bridge errors from one type to another.
// We need this to convert errors from other crates into ANNError for interop
pubstructBridge<T>(pub T);impl<T>Bridge<T>{pubfninto_inner(self)-> T{self.0}}pubtraitBridgeErr<T, E> {fnbridge_err(self)->Result<T, Bridge<E>>;}impl<T, E>BridgeErr<T, E>forResult<T, E>{fnbridge_err(self)->Result<T, Bridge<E>>{self.map_err(Bridge)}}