pub struct CssGeneratorContract { /* private fields */ }Expand description
CssGenerator API contract
Implementations§
Source§impl CssGeneratorContract
impl CssGeneratorContract
pub fn new(version: ApiVersion) -> Self
Trait Implementations§
Source§impl ApiContract for CssGeneratorContract
impl ApiContract for CssGeneratorContract
type Input = CssGeneratorInput
type Output = String
type Error = TailwindError
Source§fn validate_input(&self, input: &Self::Input) -> Result<(), ContractError>
fn validate_input(&self, input: &Self::Input) -> Result<(), ContractError>
Validate input according to contract
Source§fn process(&self, input: Self::Input) -> Result<Self::Output, Self::Error>
fn process(&self, input: Self::Input) -> Result<Self::Output, Self::Error>
Process input according to contract
Source§fn validate_output(&self, output: &Self::Output) -> Result<(), ContractError>
fn validate_output(&self, output: &Self::Output) -> Result<(), ContractError>
Validate output according to contract
Source§impl Clone for CssGeneratorContract
impl Clone for CssGeneratorContract
Source§fn clone(&self) -> CssGeneratorContract
fn clone(&self) -> CssGeneratorContract
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CssGeneratorContract
impl RefUnwindSafe for CssGeneratorContract
impl Send for CssGeneratorContract
impl Sync for CssGeneratorContract
impl Unpin for CssGeneratorContract
impl UnwindSafe for CssGeneratorContract
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more