Struct texlang_stdlib::time::Component
source · pub struct Component { /* private fields */ }
Expand description
Component for storing state related to the time commands.
Implementations§
source§impl Component
impl Component
sourcepub fn new_with_values(
minutes_since_midnight: i32,
day: i32,
month: i32,
year: i32
) -> Component
pub fn new_with_values( minutes_since_midnight: i32, day: i32, month: i32, year: i32 ) -> Component
Create a new component with the variable initialized with the provided values.
This is useful in situations where the DateTime library can’t be used; e.g., when Texcraft is compiled to WebAssembly and running in the browser.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Component
impl<'de> Deserialize<'de> for Component
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl HasComponent<Component> for StdLibState
impl HasComponent<Component> for StdLibState
Auto Trait Implementations§
impl RefUnwindSafe for Component
impl Send for Component
impl Sync for Component
impl Unpin for Component
impl UnwindSafe for Component
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