pub struct Ctx {
pub config: Arc<Mutex<Cfg>>,
/* private fields */
}Fieldsยง
ยงconfig: Arc<Mutex<Cfg>>Implementationsยง
Trait Implementationsยง
Sourceยงimpl<'de> Deserialize<'de> for Ctx
impl<'de> Deserialize<'de> for Ctx
Sourceยงfn deserialize<D>(
deserializer: D,
) -> Result<Ctx, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<Ctx, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Sourceยงimpl Serialize for Ctx
impl Serialize for Ctx
Sourceยงfn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementationsยง
impl Freeze for Ctx
impl RefUnwindSafe for Ctx
impl Send for Ctx
impl Sync for Ctx
impl Unpin for Ctx
impl UnsafeUnpin for Ctx
impl UnwindSafe for Ctx
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Sourceยงimpl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Sourceยงimpl<T> Stylable for Twhere
T: Display,
impl<T> Stylable for Twhere
T: Display,
fn print(&self)
fn println(&self)
fn wrap_reset(&self, style: &CStyle) -> String
fn in_bold(&self) -> String
fn in_dim(&self) -> String
fn in_italic(&self) -> String
fn in_underline(&self) -> String
fn in_blink(&self) -> String
fn in_gray(&self) -> String
fn in_red(&self) -> String
fn in_green(&self) -> String
fn in_yellow(&self) -> String
fn in_blue(&self) -> String
fn in_magenta(&self) -> String
fn in_cyan(&self) -> String
fn in_white(&self) -> String
fn in_orange(&self) -> String
fn in_pink(&self) -> String
fn in_purple(&self) -> String
fn on_gray(&self) -> String
fn on_red(&self) -> String
fn on_green(&self) -> String
fn on_yellow(&self) -> String
fn on_blue(&self) -> String
fn on_magenta(&self) -> String
fn on_cyan(&self) -> String
fn on_white(&self) -> String
fn on_orange(&self) -> String
fn on_pink(&self) -> String
fn on_purple(&self) -> String
fn subtle(&self) -> String
fn as_info(&self) -> String
fn as_success(&self) -> String
fn as_warning(&self) -> String
fn as_error(&self) -> String
fn as_debug(&self) -> String
fn with_nostyle(&self) -> String
fn vibrant(&self) -> String
Sourceยงfn print_positioned<F>(&self, x: i32, y: i32, func: F)
fn print_positioned<F>(&self, x: i32, y: i32, func: F)
Print the text at a specific position
x and y are offsets from the current position